Skip to content

Commit

Permalink
Merge pull request #49 from nhsuk/npm-publishing-auth
Browse files Browse the repository at this point in the history
Npm publishing
  • Loading branch information
davidhunter08 authored Apr 19, 2024
2 parents 0054a7b + 1b371b6 commit f9e75a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish ${IS_PRERELEASE:+--tag=prerelease}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
IS_PRERELEASE: ${{github.event.release.prerelease}}

0 comments on commit f9e75a5

Please sign in to comment.