fix(ci): use yarn for prepublish #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | |
] | |
- run: yarn install | |
if: ${{ steps.rpa.outputs.pr }} | |
- run: yarn lint | |
if: ${{ steps.rpa.outputs.pr }} | |
# - run: yarn test | |
# if: ${{ steps.release.outputs.release_created }} | |
- run: yarn prepublish | |
if: ${{ steps.rpa.outputs.pr }} | |
- name: Commit and push to pull request | |
if: ${{ steps.rpa.outputs.pr }} | |
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0 | |
with: | |
add_options: --force | |
commit_message: | | |
chore(build): build dist for release | |
This is an automatic commit to release the binaries. | |
file_pattern: 'dist/*' |