From b34c03fcec4ae4af96a8a45f33948b16f13df8e2 Mon Sep 17 00:00:00 2001 From: Vergil Penkov <85731267+vergilfromadyen@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:46:10 +0200 Subject: [PATCH] Set always-auth to true and move NODE_AUTH_TOKEN to the job level --- .github/workflows/npmpublish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 53f515039..0d9e063e5 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -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 }} +