Repository navigation
ci: switch preview builds to OIDC publishing - #713
Merged
Merged
Conversation
Replace the `issue_comment` trigger in `publish-preview.yml` with `workflow_dispatch`, and call the `publish-preview-oidc.yml` reusable workflow from `MetaMask/github-tools`. Publishing now goes through the `npm-preview` environment, so the long-lived `PUBLISH_PREVIEW_NPM_TOKEN` secret is no longer needed. Add `publish-preview-comment.yml`, which replies to legacy `@metamaskbot publish-preview` comments with instructions for the new workflow. Based on MetaMask/core#11534 and MetaMask/core#11682.
Mrtenz
commented
Nov 23, 2026
Mrtenz
commented
Nov 23, 2026
Mrtenz
marked this pull request as ready for review
November 23, 2026 12:04
mathieuartu
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "Publish a preview build" workflow runs when someone comments
@metamaskbot publish-preview, and it publishes with the long-livedPUBLISH_PREVIEW_NPM_TOKENsecret. This PR moves it to NPM trusted publishing (OIDC), whichMetaMask/corealready uses.publish-preview.ymlnow runs manually throughworkflow_dispatchand calls thepublish-preview-oidc.ymlreusable workflow fromMetaMask/github-tools. It takes a pull request number or a branch. It can publish all packages, a given list, or only the packages that changed. Publishing goes through thenpm-previewenvironment, so we no longer need the NPM token secret.publish-preview-comment.ymlis new. If someone posts the old@metamaskbot publish-previewcomment, it replies with a link to the new workflow and the PR number to enter.References