ci: Upgrade Yarn to 4.16.0 and align workflows with module template#204
Merged
Conversation
action-npm-publish to v6|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
cryptodev-2s
approved these changes
Jun 5, 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.
Summary
.yarnrc.ymlwith the module template (Corepack,approvedGitRepositories: [],npmMinimalAgeGate: 4320,npmPreapprovedPackages)action-npm-publishfrom v1 to v6main.yml— top-level orchestration workflow (actionlint, security scan, build/lint/test, release gating)build-lint-test.yml— reusable workflow withprepare/build/lint/test/compatibility-testjobs on Node 20/22/24 usingaction-checkout-and-setup@v3publish-release.ymlas a reusableworkflow_call— restructured asbuild → publish-npm-dry-run → publish-npm → publish-release; GitHub release now happens after npm publish; usesaction-publish-release@v3create-release-pr.yml— usesaction-checkout-and-setup@v3,action-create-release-pr@v5,release-typeis now achoiceinputpublish-preview.yml—action-checkout-and-setup@v1→v3build-test.ymlandsecurity-code-scanner.yml— consolidated intomain.ymlactionlint-matcher.jsonandactionlint.ymllint:changelogscript (auto-changelog validate --formatter prettier) and wires it intolintandlint:fixNote
Medium Risk
Changes npm publish ordering, release gating, and Node matrix coverage, which can block merges or alter how/when packages ship if misconfigured.
Overview
Replaces the monolithic
build-test.ymlCI with amain.ymlentrypoint that runs actionlint (with a GitHub problem matcher), invokes the reusable MetaMask security scan workflow, and calls a new reusablebuild-lint-test.ymlfor prepare/build/lint/test plus a lockfile-free compatibility test on Node 20/22/24 viaMetaMask/action-checkout-and-setup@v3.Release and publish behavior shifts:
publish-release.ymlis nowworkflow_call-only and runsbuild → npm dry-run → npm publish → GitHub release(GitHub release after npm), using artifact upload/download instead of commit-keyed cache andaction-npm-publish@v6/action-publish-release@v3.main.ymlgates publishing onall-jobs-pass,action-is-release@v2, and push events whose head commit author isgithub-actions.create-release-pr.ymlmoves toaction-create-release-pr@v5, makesrelease-typea choice input (including empty), and drops the release-authors artifact upload.publish-preview.ymlbumps checkout/setup to v3. Addsactionlint.ymlto ignore the intentional emptyrelease-typeoption.Reviewed by Cursor Bugbot for commit 9e17710. Bugbot is set up for automated code reviews on this repo. Configure here.