From 36232cd771cc4c2cea8393cc9520936696a6fc47 Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Tue, 23 Mar 2021 20:15:01 +0100 Subject: [PATCH] Fix release workflow --- .github/workflows/release.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba6c64a19..47fd5770b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,9 @@ jobs: if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn --pure-lockfile + - name: Set Auth Token + run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} + - name: Set new version run: yarn workspace lucide version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version @@ -55,8 +58,6 @@ jobs: - name: Publish run: yarn workspace lucide publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Commit package.json run: | @@ -88,6 +89,9 @@ jobs: if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn --pure-lockfile + - name: Set Auth Token + run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} + - name: Set package.json version lucide run: yarn workspace lucide-react version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version @@ -99,8 +103,6 @@ jobs: - name: Publish run: yarn workspace lucide-react publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Commit package.json run: | @@ -132,6 +134,9 @@ jobs: if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn --pure-lockfile + - name: Set Auth Token + run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} + - name: Set new version run: yarn workspace lucide-vue version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version @@ -143,8 +148,6 @@ jobs: - name: Publish run: yarn workspace lucide-vue publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Commit package.json run: |