From 73d249d7eacedc3f4ba08cbb2ba63c8bf3a28a17 Mon Sep 17 00:00:00 2001 From: "Eric J. Smith" Date: Sat, 4 May 2024 12:26:09 -0500 Subject: [PATCH] Wrong publish --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e1a629..1cab56d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,7 +98,9 @@ jobs: - name: Publish Release Package if: startsWith(github.ref, 'refs/tags/v') working-directory: npm - run: npm publish --provenance --access public + run: | + npm config set //registry.npmjs.org/:_authToken "$NODE_AUTH_TOKEN" + npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} @@ -113,8 +115,6 @@ jobs: - name: Push GitHub CI Packages if: github.event_name != 'pull_request' working-directory: npm - run: | - npm config set //registry.npmjs.org/:_authToken "$NODE_AUTH_TOKEN" - npm publish --access public + run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}