Skip to content

Publish to npm via trusted publishing - #17

Merged
microbit-matt-hillsdon merged 1 commit into
mainfrom
npm-trusted-publishing
Sep 9, 2026
Merged

Publish to npm via trusted publishing#17
microbit-matt-hillsdon merged 1 commit 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 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 pack now runs on every build so packaging problems fail a branch build rather than a release.

Also drops the packages: write permission and the GITHUB_TOKEN passed to npm ci, left over from GitHub Packages; nothing here resolves from that registry.

Replaces the NPM_TOKEN secret with OIDC, following makecode-embed. The
build job packs the 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 pack now runs on every build so packaging problems fail
a branch build rather than a release.

Also drops the packages: write permission and the GITHUB_TOKEN passed to
npm ci, left over from GitHub Packages; nothing here resolves from that
registry.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying python-editor-embed with  Cloudflare Pages  Cloudflare Pages

Latest commit: 504942f
Status: ✅  Deploy successful!
Preview URL: https://4fa583d9.python-editor-embed.pages.dev
Branch Preview URL: https://npm-trusted-publishing.python-editor-embed.pages.dev

View logs

@microbit-matt-hillsdon
microbit-matt-hillsdon merged commit 3222f65 into main Sep 9, 2026
5 checks passed
@microbit-matt-hillsdon
microbit-matt-hillsdon deleted the npm-trusted-publishing branch September 9, 2026 12:19
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