Skip to content

Commit ca29799

Browse files
committed
CD: use our npm token rather than trusted publishing.
For some reasons, this is not working for us anymore?! Before we got: npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access npm notice publish Signed provenance statement with source and build information from GitHub Actions npm notice publish Provenance statement published to transparency log: https://search.sigstore.dev/?logIndex=555275881 + @opencor/libopencor@0.20250924.4 But now, we are getting: npm error code ENEEDAUTH npm error need auth This command requires you to be logged in to https://registry.npmjs.org/ npm error need auth You need to authorize this machine using `npm adduser` npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-09-25T20_52_02_257Z-debug-0.log Error: Process completed with exit code 1. This, even though we haven't changed anything!?
1 parent 5a20826 commit ca29799

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ jobs:
203203
BUILDCACHE_COMPRESS_FORMAT: ZSTD
204204
BUILDCACHE_DEBUG: -1
205205
BUILDCACHE_LOG_FILE: ""
206-
environment: npm
206+
env:
207+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
207208
steps:
208209
- name: Set the timezone to New Zealand
209210
uses: szenius/set-timezone@v2.0

0 commit comments

Comments
 (0)