Skip to content

Commit 922ac1d

Browse files
authored
fix: Remove registry-url from setup-node to fix OIDC npm publish (#1184)
Closes #1178 Docs: PostHog/posthog.com#15480 The npm publish step was failing with OIDC auth errors because `setup-node` with `registry-url` creates an `.npmrc` that conflicts with the OIDC flow. 1. Remove registry-url from setup-node so npm uses its built-in OIDC provenance flow 2. Remove manual npm upgrade step (no longer needed) 3. Remove empty NODE_AUTH_TOKEN env var
1 parent 5e17e65 commit 922ac1d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

.github/workflows/agent-release.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
with:
3131
node-version: 24
3232
cache: "pnpm"
33-
registry-url: https://registry.npmjs.org
3433

3534
- name: Extract version from tag
3635
id: version
@@ -61,12 +60,8 @@ jobs:
6160
- name: Run tests
6261
run: pnpm --filter agent run test
6362

64-
- name: Ensure modern npm (OIDC support)
65-
run: npm install -g npm@11.6.4
66-
6763
- name: Publish the package to npm registry
6864
working-directory: packages/agent
6965
run: pnpm publish --access public --no-git-checks
7066
env:
7167
NPM_CONFIG_PROVENANCE: true
72-
NODE_AUTH_TOKEN: ''

0 commit comments

Comments
 (0)