Skip to content

NPM package publishing via Trusted Publishing - #1495

Draft
hillna wants to merge 1 commit into
mainfrom
nick/inf-64-migrate-foxglovebot-npm-tokens-to-new-access-tokens
Draft

NPM package publishing via Trusted Publishing#1495
hillna wants to merge 1 commit into
mainfrom
nick/inf-64-migrate-foxglovebot-npm-tokens-to-new-access-tokens

Conversation

@hillna

@hillna hillna commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

Changelog

None

Docs

None

Description

Updates NPM publishing to use Trusted Publishing since classic tokens are being deprecated.


Note

Move TypeScript package publishing to NPM Trusted Publishing via OIDC, adding required permissions and removing classic token usage.

  • CI workflow (.github/workflows/ci.yml):
    • TypeScript job:
      • Add permissions.contents: read alongside id-token: write for OIDC.
      • Configure actions/setup-node with registry-url for NPM.
      • Remove NODE_AUTH_TOKEN env from all npm publish steps for @mcap/{core,support,nodejs,browser} (Trusted Publishing).
      • Keep npm publish ... --provenance --access public steps gated by tag refs.

Written by Cursor Bugbot for commit fdd1121. This will update automatically on new commits. Configure here.

@hillna hillna self-assigned this Dec 5, 2025
@linear

linear Bot commented Dec 5, 2025

Copy link
Copy Markdown

@hillna
hillna marked this pull request as draft December 5, 2025 20:17
@hillna

hillna commented Dec 5, 2025

Copy link
Copy Markdown
Contributor Author

Trusted Publishing did not work correctly when tested in create-foxglove-extensions:

https://github.com/foxglove/create-foxglove-extension/actions/runs/19973666664

Moving this to draft while I debug Trusted Publishing and fall back to updating the NPM tokens to Granular for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants