Skip to content

Commit

Permalink
ci(workflow): auto publish to npm when release pr is merged
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyhom committed Aug 26, 2022
1 parent 3910084 commit e105bf3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@ jobs:
committer_email: github-actions[bot]@users.noreply.github.com
push: true

release-and-publish:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -55,7 +52,7 @@ jobs:
{ "type": "perf", "section": "Performance", "hidden": false },
{ "type": "refactor", "section": "Refactor", "hidden": false },
{ "type": "docs", "section": "Documentation","hidden": false },
{ "type": "ci", "section": "CI/CD", "hidden": false },
{ "type": "ci", "section": "CI/CD", "hidden": true },
{ "type": "revert", "section": "Reverts", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "build", "section": "Build", "hidden": true },
Expand All @@ -67,3 +64,4 @@ jobs:
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit e105bf3

Please # to comment.