Skip to content

Commit

Permalink
chore: auto-publish package to npm after release
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Oct 16, 2020
1 parent 5ad7e4e commit 7f1760a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,17 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: node-core-utils
# The logic below handles the npm publication:
- uses: actions/checkout@v2
# These if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 14.x
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit 7f1760a

Please sign in to comment.