Skip to content

Commit 004fcbb

Browse files
fix(ci): clear NODE_AUTH_TOKEN for npm OIDC, add dry-run test job
1 parent ed7a575 commit 004fcbb

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,37 @@ jobs:
220220
- name: Publish to npm
221221
run: npm publish --provenance --access public
222222
working-directory: sdk/typescript
223+
env:
224+
NODE_AUTH_TOKEN: ""
225+
226+
# Dry-run npm publish to verify OIDC auth works (manual trigger only)
227+
test-npm-publish:
228+
name: Test npm publish (dry-run)
229+
if: github.event_name == 'workflow_dispatch'
230+
needs: [build-kayba-tracing-ts]
231+
runs-on: ubuntu-latest
232+
environment:
233+
name: npm
234+
permissions:
235+
id-token: write
236+
steps:
237+
- uses: actions/checkout@v4
238+
239+
- name: Set up Node.js
240+
uses: actions/setup-node@v4
241+
with:
242+
node-version: '22'
243+
244+
- name: Install dependencies
245+
run: npm ci
246+
working-directory: sdk/typescript
247+
248+
- name: Build
249+
run: npm run build
250+
working-directory: sdk/typescript
251+
252+
- name: Dry-run publish
253+
run: npm publish --provenance --access public --dry-run
254+
working-directory: sdk/typescript
255+
env:
256+
NODE_AUTH_TOKEN: ""

0 commit comments

Comments
 (0)