File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 : " "
You can’t perform that action at this time.
0 commit comments