Skip to content

Commit

Permalink
Update npmpublish.yml
Browse files Browse the repository at this point in the history
- Uses the same node-version as during the `coverall` workflow  
- Uses `NODE_AUTH_TOKEN` as described in the [documentation](https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-npm)
  • Loading branch information
vergilfromadyen authored Sep 3, 2024
1 parent b0e129e commit 7f67f47
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
registry-url: https://registry.npmjs.org/
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- run: |
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }}
npm install
npm run build
npm publish
- run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }}

0 comments on commit 7f67f47

Please sign in to comment.