ci: add the per-package release-candidate and release workflows - #26
Open
nahimterrazas wants to merge 1 commit into
Open
ci: add the per-package release-candidate and release workflows#26nahimterrazas wants to merge 1 commit into
nahimterrazas wants to merge 1 commit into
Conversation
The hardhat-tron pair, adapted for the two-workspace monorepo: - rc.yml takes the workspace as a dispatch input and packs its one canonical tarball, recording sha256 + npm integrity. It does not re-run the suites: the packed commit is on main, which branch protection only admits through the full CI matrix. What it validates is the artifact, including a blocking production audit of the TARBALL's own dependency tree, resolved lock-only in a scratch consumer — the root lockfile mixes every workspace's development tree, so a root audit would gate releases on tooling. - release.yml publishes the exact attached bytes on per-package tags (<workspace>-v<version>), gated behind the publish environment, OIDC preferred with the NPM_TOKEN fallback for a first publish. The registry-verify window is 40 x 30s: npm took ~15 minutes to serve hardhat-tron's first publish and that run ended red on success.
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
hardhat-tronrc/release pair, adapted for the two-workspace monorepo. Closes the publish-flow half of #13.Differences from the single-package source, each deliberate
<workspace>-v<version>(tronbox-upgrades-v0.1.0,hardhat-tron-upgrades-v0.1.0), and release.yml resolves the workspace from the tag and cross-checks it against the tarball's own name and version.id-token: write) and runnpm audit --omit=dev --audit-level=highon that.What the flow needs besides this PR
The
publishenvironment already exists here (reviewers + prevent self-review). Missing only the temporary granularNPM_TOKENsecret, and the environment's deployment rules must admit the per-package tags (tronbox-upgrades-v*,hardhat-tron-upgrades-v*).