Skip to content

ci: publish to npm via OIDC trusted publishing to workspace root#436

Merged
michealroberts merged 1 commit into
mainfrom
ci/workflows/publish/oidc-trusted-publishing
Jul 19, 2026
Merged

ci: publish to npm via OIDC trusted publishing to workspace root#436
michealroberts merged 1 commit into
mainfrom
ci/workflows/publish/oidc-trusted-publishing

Conversation

@michealroberts

Copy link
Copy Markdown
Member

ci: publish to npm via OIDC trusted publishing to workspace root

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the release publishing workflow to use npm’s OIDC trusted publishing flow (tokenless) and publish from the repository workspace root.

Changes:

  • Removes secret-based npm publishing and adds id-token: write permissions for OIDC.
  • Configures actions/setup-node with the npmjs registry URL.
  • Replaces the JS-DevTools/npm-publish action with a direct npm publish --access public command.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/publish.yml
Comment thread .github/workflows/publish.yml Outdated
ci: publish to npm via OIDC trusted publishing to workspace root
@michealroberts
michealroberts force-pushed the ci/workflows/publish/oidc-trusted-publishing branch from 22107ea to 4b72fbb Compare July 19, 2026 19:00
@michealroberts
michealroberts requested a review from Copilot July 19, 2026 19:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

.github/workflows/publish.yml:55

  • The workflow removes any npm auth token and relies on OIDC, but npm publish --access public by itself typically still requires authentication (it will error with ENEEDAUTH). For npm trusted publishing via GitHub OIDC, npm publish should request provenance so the CLI performs the OIDC token exchange.
      - name: Publish to NPM 📦
        run: npm publish --access public

@michealroberts
michealroberts merged commit 01f3eef into main Jul 19, 2026
8 checks passed
@michealroberts
michealroberts deleted the ci/workflows/publish/oidc-trusted-publishing branch July 19, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants