Skip to content

Commit b34c03f

Browse files
Set always-auth to true and move NODE_AUTH_TOKEN to the job level
1 parent 49396a7 commit b34c03f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/npmpublish.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ jobs:
99
publish-npm:
1010
runs-on: ubuntu-latest
1111
environment: release
12+
env:
13+
NODE_AUTH_TOKEN: ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }}
1214
steps:
1315
- uses: actions/checkout@v4
1416
- uses: actions/setup-node@v4
1517
with:
1618
node-version: '18.x'
1719
registry-url: 'https://registry.npmjs.org'
20+
always-auth: true
1821
- run: |
1922
npm install
2023
npm run build
2124
- run: npm publish
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }}
25+

0 commit comments

Comments
 (0)