ci: use the NPM_AUTH secret for both Verdaccio and npmjs publishes
CI / build (pull_request) Successful in 24s

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 <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-17 21:17:17 -05:00
1 parent 33df70730b
commit 96d863d402
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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