Skip to content

Add preview builds#544

Merged
mcmire merged 8 commits intomainfrom
add-preview-builds
Oct 9, 2025
Merged

Add preview builds#544
mcmire merged 8 commits intomainfrom
add-preview-builds

Conversation

@mcmire
Copy link
Copy Markdown
Contributor

@mcmire mcmire commented Oct 8, 2025

With these changes, you can post a comment in a PR with the content @metamaskbot publish-preview, and it will build the branch and publish it under the @metamask-previews under a special version. This works very similarly to how it works in core.


Note

Adds a comment-triggered GitHub Action to publish preview builds to the @metamask-previews scope, plus supporting scripts and documentation.

  • CI/Automation:
    • Adds /.github/workflows/publish-preview.yml to publish preview builds when a PR comment starts with @metamaskbot publish-preview.
    • Reacts to the trigger comment, checks out the PR, prepares preview manifest, builds, publishes with --tag preview, and posts a comment with details.
  • Scripts:
    • scripts/prepare-preview-builds.sh and scripts/prepare-preview-builds.jq: rewrite package.json to use @metamask-previews scope and append short commit SHA to the -preview- prerelease version; reinstall deps.
    • scripts/generate-preview-build-message.sh: outputs the preview install identifier for PR comment.
  • Docs:
    • README.md: remove Linking section and add instructions for creating, using, and updating preview builds with resolution/override examples.

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

mcmire added 2 commits October 8, 2025 15:42
With these changes, you can post a comment in a PR with the content
`@metamaskbot publish-preview`, and it will build the branch and publish
it under the `@metamask-previews` under a special version. This works
very similarly to how it works in `core`.
@mcmire mcmire marked this pull request as ready for review October 8, 2025 21:50
@mcmire mcmire requested a review from a team as a code owner October 8, 2025 21:50
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cryptodev-2s
cryptodev-2s previously approved these changes Oct 9, 2025
Copy link
Copy Markdown
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@mcmire mcmire merged commit 6aa42cd into main Oct 9, 2025
18 checks passed
@mcmire mcmire deleted the add-preview-builds branch October 9, 2025 22:28
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