Skip to content

feat: add yarn steps to release binary #3

feat: add yarn steps to release binary

feat: add yarn steps to release binary #3

Workflow file for this run

name: Chart Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: google-github-actions/release-please-action@v3
id: rpa
with:
release-type: node
pull-request-title-pattern: "chore(release): ${component} ${version}"
changelog-types: >
[
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "revert", "section": "Reverts" },
{ "type": "chore", "section": "Miscellaneous Chores" },
{ "type": "docs", "section": "Documentation" },
{ "type": "test", "section": "Tests", "hidden": "true" },
{ "type": "ci", "section": "Continuous Integration", "hidden": "true" }
]
- uses: actions/setup-node@v4
if: ${{ steps.rpa.outputs.release_created }}
with:
node-version: 12
- run: yarn lint
if: ${{ steps.rpa.outputs.release_created }}
# - run: yarn test
# if: ${{ steps.release.outputs.release_created }}
- run: npm prepublish
if: ${{ steps.rpa.outputs.release_created }}
- name: Commit and push to pull request
if: ${{ steps.rpa.outputs.release_created }}
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
with:
commit_message: |
chore(build): build dist for release
This is an automatic commit to release the binaries.
file_pattern: 'dist/*'