Skip to content

Commit

Permalink
Add the npm-publish-latest-tag GitHub Action step to npm-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tobysmith568 committed Jan 9, 2022
1 parent 2c8c230 commit d20f190
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
- run: npm ci
- run: npm run build
- run: npm run test:ci
- run: npm publish --access public

- uses: tobysmith568/npm-publish-latest-tag@v1
id: latest_tag
with:
package-json: ./package.json

- run: npm publish --access public --tag ${{ steps.latest_tag.outputs.latest-tag }}
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit d20f190

Please sign in to comment.