Skip to content

Publish to npm via trusted publishing - #142

Merged
microbit-grace merged 2 commits into
mainfrom
npm-trusted-publishing
Sep 9, 2026
Merged

Publish to npm via trusted publishing#142
microbit-grace merged 2 commits into
mainfrom
npm-trusted-publishing

Conversation

@microbit-matt-hillsdon

Copy link
Copy Markdown
Contributor

Replaces the NPM_TOKEN secret with OIDC, following makecode-embed. The build job packs the routed workspace's tarball and a separate publish job, with no checkout and the only id-token permission, stages it to npm from the npm-publish environment. npm stage is unaware of workspaces, but publishing the tarball from npm pack -w sidesteps that. npm pack now runs on every build (for @microbit/ui on branches) so packaging problems fail a branch build rather than a release.

Replaces the NPM_TOKEN secret with OIDC, following makecode-embed. The
build job packs the routed workspace's tarball and a separate publish
job, with no checkout and the only id-token permission, stages it to npm
from the npm-publish environment. npm stage is unaware of workspaces,
but publishing the tarball from npm pack -w sidesteps that. npm pack now
runs on every build (for @microbit/ui on branches) so packaging problems
fail a branch build rather than a release.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 9, 2026

Copy link
Copy Markdown

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: cb8f73b
Status: ✅  Deploy successful!
Preview URL: https://42769bbd.ui-2wg.pages.dev
Branch Preview URL: https://npm-trusted-publishing.ui-2wg.pages.dev

View logs

@microbit-grace
microbit-grace merged commit 3936f3f into main Sep 9, 2026
4 checks passed
@microbit-grace
microbit-grace deleted the npm-trusted-publishing branch September 9, 2026 12:57
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.

2 participants