Skip to content

Commit 1358e6b

Browse files
committed
fix(ci): use Node 24 for npm trusted publishing
npm 11 (bundled with Node 24) auto-attempts OIDC when no auth token is present. npm 10 (Node 22) does not. Match the context-lens setup.
1 parent 1996ce4 commit 1358e6b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,22 @@ jobs:
1414
- uses: pnpm/action-setup@v4
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 22
18-
registry-url: https://registry.npmjs.org/
17+
node-version: 24
18+
- run: npm config set registry https://registry.npmjs.org/
1919
- run: pnpm install --frozen-lockfile
2020
- run: pnpm build
2121
- run: pnpm test
2222
- name: Verify packages built
2323
run: |
24-
# CLI has main.js, others have index.js
2524
[ -f "packages/cli/dist/main.js" ] || { echo "ERROR: CLI dist/main.js missing"; exit 1; }
2625
[ -f "packages/core/dist/index.js" ] || { echo "ERROR: core dist/index.js missing"; exit 1; }
2726
[ -f "packages/proxy/dist/index.js" ] || { echo "ERROR: proxy dist/index.js missing"; exit 1; }
2827
[ -f "packages/redact/dist/index.js" ] || { echo "ERROR: redact dist/index.js missing"; exit 1; }
2928
[ -f "packages/logger/dist/index.js" ] || { echo "ERROR: logger dist/index.js missing"; exit 1; }
3029
echo "All packages built successfully"
31-
- run: pnpm publish --recursive --access public --provenance --no-git-checks
30+
- name: Publish to npm
31+
run: |
32+
for pkg in packages/core packages/logger packages/proxy packages/redact packages/cli; do
33+
echo "=== Publishing $pkg ==="
34+
(cd "$pkg" && npm publish --access public)
35+
done

0 commit comments

Comments
 (0)