From 702ad00e0f2290e0ec40f251f0bede26fcb81ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cruz?= Date: Mon, 20 Nov 2023 17:37:53 +0000 Subject: [PATCH] Pass NPM_TOKEN to release step --- .github/workflows/release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d9e0a64..8de66ce 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,7 +50,9 @@ jobs: git config user.email "bot@uphold.com" - name: Generate release - id: generate-release env: + NPM_TOKEN: ${{ secrets.RELEASE_NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} - run: yarn run release --increment "${{ github.event.inputs.VERSION_BUMP }}" -V + run: | + echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc + yarn run release --increment ${{ github.event.inputs.VERSION_BUMP }} -V