Skip to content

Commit

Permalink
Set always-auth to true and move NODE_AUTH_TOKEN to the job level
Browse files Browse the repository at this point in the history
  • Loading branch information
vergilfromadyen authored Sep 5, 2024
1 parent 49396a7 commit b34c03f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
environment: release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
always-auth: true
- run: |
npm install
npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }}

0 comments on commit b34c03f

Please sign in to comment.