Skip to content

Commit 9d71fe4

Browse files
AB#125 Fix publish workflow for OIDC Trusted Publishing
Remove registry-url from setup-node to avoid empty token in .npmrc. Use npm publish per-package instead of pnpm -r publish for OIDC compat. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9506fc3 commit 9d71fe4

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,32 @@ jobs:
6060
uses: actions/setup-node@v4
6161
with:
6262
node-version: '20'
63-
registry-url: 'https://registry.npmjs.org'
6463
cache: 'pnpm'
6564

65+
- name: Configure npm registry
66+
run: npm config set registry https://registry.npmjs.org/
67+
6668
- name: Install dependencies
6769
run: pnpm install --frozen-lockfile
6870

6971
- name: Build
7072
run: pnpm build
7173

72-
- name: Publish packages with provenance
73-
run: pnpm -r --filter '!./packages/viewer' --filter '!./packages/vscode-extension' --filter '!./packages/benchmarks' publish --access public --provenance --no-git-checks
74+
- name: Debug npm version
75+
run: npm --version
76+
77+
- name: Publish @code-rag/core
78+
working-directory: packages/core
79+
run: npm publish --provenance --access public
80+
81+
- name: Publish @code-rag/mcp-server
82+
working-directory: packages/mcp-server
83+
run: npm publish --provenance --access public
84+
85+
- name: Publish @code-rag/api-server
86+
working-directory: packages/api-server
87+
run: npm publish --provenance --access public
88+
89+
- name: Publish @code-rag/cli
90+
working-directory: packages/cli
91+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)