Skip to content

build: Use OIDC for npm publishing#5609

Merged
max-sixty merged 1 commit intoPRQL:mainfrom
max-sixty:oidc-npm-publish
Dec 12, 2025
Merged

build: Use OIDC for npm publishing#5609
max-sixty merged 1 commit intoPRQL:mainfrom
max-sixty:oidc-npm-publish

Conversation

@max-sixty
Copy link
Copy Markdown
Member

Summary

  • Switch from NPM_TOKEN secret to GitHub OIDC for npm authentication
  • More secure - no token rotation needed
  • Adds provenance attestation to published packages

Changes

  • Add id-token: write permission to publish-js job
  • Use --provenance --access public flags for OIDC-based publishing
  • Remove NPM_TOKEN secret usage

Context

The 0.13.8 npm release failed because the NPM_TOKEN expired. OIDC eliminates this failure mode.

Test plan

  • CI passes
  • Nightly dry-run succeeds (will run overnight or can be triggered manually)

🤖 Generated with Claude Code

Switch from NPM_TOKEN secret to GitHub OIDC for npm authentication.
This is more secure and doesn't require token rotation.

Changes:
- Add id-token: write permission to publish-js job
- Use --provenance flag for OIDC-based publishing
- Remove NPM_TOKEN secret usage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@max-sixty max-sixty merged commit bb084c8 into PRQL:main Dec 12, 2025
78 checks passed
@max-sixty max-sixty deleted the oidc-npm-publish branch December 12, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant