From 96d863d4026fd0f21828ecf41819d4d0fe1cbf80 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Fri, 17 Jul 2026 21:17:17 -0500 Subject: [PATCH] ci: use the NPM_AUTH secret for both Verdaccio and npmjs publishes One secret name across forges: Gitea's NPM_AUTH (org-level) = the Verdaccio token for staging; GitHub's NPM_AUTH = the npmjs token for production. Each forge supplies its own value. Signed-off-by: Diego Resendez --- .github/workflows/release.yml | 2 +- .github/workflows/stage.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1dd85f6..4eb5f05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,5 +22,5 @@ jobs: # `npm publish` runs prepublishOnly (lint + complexity + typecheck + test + build) first. - name: Publish to npmjs env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH }} run: npm publish --access public diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 9b467a4..2822bf2 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -22,7 +22,7 @@ jobs: # as its own gate before anything leaves the machine. - name: Publish to Verdaccio env: - NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH }} run: | npm config set //npm.svc.zoit.services/:_authToken "$NODE_AUTH_TOKEN" npm publish --registry https://npm.svc.zoit.services --tag stg