Skip to content

Commit 98e404f

Browse files
Wenxin-Jiangclaude
andcommitted
fix: remove NPM_TOKEN, use OIDC trusted publishing like socket-cli
The original ENEEDAUTH failure was caused by missing registry-url in setup-node, not missing NPM_TOKEN. With registry-url set, OIDC trusted publishing works for both existing and new packages. Also fixes zizmor secrets-outside-env warnings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b53aa0c commit 98e404f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,6 @@ jobs:
291291
stage_win socket-patch-aarch64-pc-windows-msvc npm/socket-patch-win32-arm64
292292
293293
- name: Publish platform packages
294-
env:
295-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
296294
run: |
297295
for pkg_dir in npm/socket-patch-*/; do
298296
echo "Publishing ${pkg_dir}..."
@@ -306,8 +304,6 @@ jobs:
306304
run: cp README.md npm/socket-patch/README.md
307305

308306
- name: Publish main package
309-
env:
310-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
311307
run: npm publish ./npm/socket-patch --provenance --access public
312308

313309
pypi-publish:

0 commit comments

Comments
 (0)