From 48f77f94f372a576e0fa5ab8dd4ffec2a133777a Mon Sep 17 00:00:00 2001 From: Sasha <118575614+weboko@users.noreply.github.com> Date: Fri, 24 Mar 2023 00:38:45 +0100 Subject: [PATCH] chore: set npm token to .npmrc (#1266) --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 587ebcf15a..dc101b11b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -231,7 +231,9 @@ jobs: - run: npm run build if: ${{ steps.release.outputs.releases_created }} + - name: Authenticate with registry + if: ${{ steps.release.outputs.releases_created }} + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./.npmrc + - run: npm publish --workspaces --tag latest --access public if: ${{ steps.release.outputs.releases_created }} - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}