From 1f341043fb0ca38e0a6d880c68c3ba9ce7d9e36c Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Tue, 14 Dec 2021 21:04:41 +0300 Subject: [PATCH] ci: configure NPM auth token --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c87f04ac790..7265fcbb953 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,10 +54,11 @@ jobs: const [, major, minor] = tag.match(/^v([0-9]+)\.([0-9]+)/); return (tag.includes('dev') ? `${major}.${minor}-dev` : 'latest'); + - name: Configure NPM auth token + run: yarn config set npmAuthToken "${{ secrets.NPM_TOKEN }}" + - name: Publish NPM packages - run: yarn workspaces foreach --all --no-private --parallel npm publish --tag ${{ steps.tag.outputs.result }} - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: yarn workspaces foreach --all --no-private --parallel npm publish --access public --tag ${{ steps.tag.outputs.result }} release-drive-docker-image: name: Release Drive to Docker Hub