From ef5cf3c74b5633fbaa7cda56c0a6db5db033ad76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cruz?= Date: Wed, 20 Dec 2023 22:34:22 +0000 Subject: [PATCH] Fix publishing to npm as part of the release --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1ac752..4e1a066 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,4 +44,7 @@ jobs: - name: Generate release env: GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} - run: yarn run release --increment "${{ github.event.inputs.VERSION_BUMP }}" -V + NPM_TOKEN: ${{ secrets.RELEASE_NPM_TOKEN }} + run: | + echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc + npm run release -- --increment "${{ github.event.inputs.VERSION_BUMP }}" -V