Skip to content

Commit

Permalink
Update npmpublish.yml to specify an environment
Browse files Browse the repository at this point in the history
  • Loading branch information
vergilfromadyen committed Sep 5, 2024
1 parent f89347d commit f7dbc47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ on:
jobs:
publish-npm:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- run: |
npm install
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }}
npm install
npm run build
npm publish

0 comments on commit f7dbc47

Please sign in to comment.