GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — fix(pnpm-release-changeset): use changesets/action v2 input names, and put the shared workflows on tags by unional · Pull Request #44 · repobuddy/.github Conversation
Contributor
Fixes the silently-broken changesets release path from #43, and puts this repo on tags so the next fix to a shared release path lands behind a version consumers opt into. Two commits, two concerns. 1.
|
| Before (v1) | After (v2) |
|---|---|
version: |
version-script: |
publish: |
publish-script: |
commit: |
commit-message: |
Plus the two secondary defects the issue records: the custom token is now passed as the github-token input (v2 defaults push-with-git-cli: false, so it pushes commits and tags through the GitHub API using that input — the GITHUB_TOKEN env var is not read), and permissions is raised to contents: write, which that push requires. id-token: write is kept for npm OIDC.
action.yml at the pinned tag, not from the issue: gh api "repos/changesets/action/contents/action.yml?ref=v2.0.0". All four of github-token, publish-script, version-script, commit-message exist as named; push-with-git-cli does default to false. Confirmed independently by the v2.0.0 release notes (Update to changesets v3 packages changesets/action#673, #674, #695).actionlint passes — but this is worth nothing as evidence, and I want to be explicit about that rather than let a green check imply verification. I ran it against the original broken file as a control and it passed that too, exit 0. actionlint does not validate third-party action input names. That is precisely why this bug survived review. The action.yml read is the only real check here.These workflows only execute on a real release, so I could not run this.
CHANGESETS_OUTPUT plumbing. v2.0.0 (Expect publish output to be shared through a file changesets/action#678) replaced stdout parsing with a shared output file, and states the CHANGESETS_OUTPUT env var "should always be passed down to the Changesets CLI invocations" when using custom scripts. We use custom scripts (pnpm run version / pnpm run release). It should be inherited by the child process normally, but I have not proven it. If it is not, Allow custom publish scripts to complete without a Changesets output file changesets/action#697 says the publish still completes while GitHub releases and git tags are not created, and the published output this workflow exposes would be wrong — visual-testing's release.yml gates its docs job on exactly that output..npmrc heredoc is now dead code and slightly broken (no closing EOF, leading whitespace, and the step sets NPM_TOKEN: ''). Remove npm auth handling in favor of docs changesets/action#695 removed .npmrc handling entirely in favour of Trusted Publishing. Left alone — separate concern, but it should be cleaned up.docs — the tagging schemeConsumers pin @v1. Semver tags plus a moving major alias, re-pointed on each compatible release; v1.0.0 immutable. Rationale, the v0.x-vs-v1.0.0 call, what one tag covers, what counts as breaking, and the release procedure are all in the README.
The short version of the judgment calls:
v1.0.0, not v0.x. The moving-major-alias convention is only coherent at >= 1 — under semver, 0.x minors may break, so a moving v0 would auto-deliver breaking changes, which is the exact failure being fixed.v1 does give back some instant propagation. Accepted knowingly: @main propagates everything including unreviewed breaking changes; @v1 propagates only what a maintainer judged compatible. Repos wanting zero drift can pin @v1.0.0.setup-playwright. A change to any one bumps the tag for everyone. That churn is noise, not risk.The root cause is upstream of #43 and is still live. .mergify.yml auto-merges Renovate PRs. The v1→v2 major arrived as #42 on branch renovate/changesets-action-2.x and auto-merged at 00:58Z on 2026-08-12 — the Mergify guard head~=^(?!major-) expects a major- prefix that Renovate does not produce here, so a major merged like a patch and reached every consumer instantly. Tagging fixes the consumer half; the Mergify rule is a separate defect and should be fixed on its own.
Renovate will keep tag pins current. The org preset (unional/renovate-preset) is just config:base + :preserveSemverRanges — no enabledManagers, nothing disabling github-actions. So pins will not go stale. Note that a moving @v1 yields no update PRs by design; Renovate only opens one when v2 appears. Dependabot is not a factor — the two configs that exist are npm-only.
Known gap, documented not fixed: pnpm-verify.yml:43 and pnpm-release-changeset.yml:42 reference this repo's own setup-playwright@main. A reusable workflow cannot use a relative path (./ resolves against the caller's checkout), so these must be fully qualified — and a consumer pinned @v1 still picks that action up from main. Re-pointing them before v1 exists would break every current consumer, so the README records the remedy to apply when cutting the first tag.
Do not cut from this branch. After this merges to main:
v1.0.0 -> the merge commit of this PR on main
v1 -> the same commit
Exact commands are in the README's "Cutting a release". Per the known gap above, consider including the setup-playwright@main → @v1 edit in the tagged commit.
The consumer list in circulation was incomplete, and no consumer can adopt this workflow yet.
A full org scan (raw grep of every workflow file in all 16 repos, not just code search) found a fourth consumer that was missed: repobuddy/jest-watch-toggle-config-2, which uses pnpm-release-changeset.yml and is therefore inside the #43 blast radius. repobuddy/visual-testing also has two more setup-playwright references than were listed (pull-request.yml, update-snapshot.yml).
All four consumers are on @changesets/cli v2:
| Repo | @changesets/cli |
Uses pnpm-release-changeset.yml |
|---|---|---|
repobuddy/repobuddy |
^2.26.0 |
yes |
repobuddy/storybook |
^2.29.7 |
yes |
repobuddy/visual-testing |
^2.29.8 |
yes |
repobuddy/jest-watch-toggle-config-2 |
^2.25.2 |
yes |
changesets/[email protected] hard-validates this — changesets/action#699 added a check that fails CLI v2 users and directs them to changesets/action@v1. So every one of the four must upgrade to @changesets/cli v3 before pinning v1 for the release workflow. repobuddy/repobuddy is doing so in repobuddy/repobuddy#581 (open; CI red only on a time-based pnpm minimumReleaseAge check that self-clears). The other three have no upgrade in flight.
To be clear about who broke what: this is not a regression introduced by pinning. main already carries changesets/action@v2, so all four are already mismatched today. Pinning does not create the problem; it stops the next one.
Migration issues with exact diffs and the CLI-v3 precondition are filed on each consumer repo.
I implemented #43 as specified — fix the v2 input names. But given that zero of four consumers can actually use the result, there is a defensible alternative worth an explicit decision rather than a silent default: revert this repo to changesets/action@v1, ship a v1.0.0 that every consumer can adopt immediately, and do the action v2 upgrade later as v2.0.0 once the consumers are on CLI v3 — which is exactly the opt-in boundary this tagging scheme exists to provide.
I did not do that, because it goes beyond what #43 and the mission asked for and is a direction change, not an implementation detail. Flagging it rather than deciding it. As it stands, v1.0.0's release workflow is correct but unusable until the consumers upgrade.
Refs #43
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The workflow pins changesets/[email protected] but passed v1 input names. Actions ignores unknown `with:` keys, so `publish-script` was never set and the action only ever opened a version PR — nothing was published to npm, and the job still went green. Verified against changesets/[email protected]'s own action.yml: version -> version-script publish -> publish-script commit -> commit-message Also pass the custom token as the `github-token` input. v2 defaults `push-with-git-cli` to false, so it pushes release commits and tags via the GitHub API using that input; supplying CI_GITHUB_TOKEN only as the GITHUB_TOKEN env var meant the custom token was ignored. Raise the job to `contents: write`, required to push those commits and tags. `id-token: write` is kept for npm OIDC trusted publishing. Refs: #43
This repo has never been tagged and every consumer pins @main, so every change reaches all of them the instant it merges — including breaking ones nobody reviewed. That is how #43 reached four repos. Adopt semver tags plus a moving major alias (v1.0.0 immutable, v1 re-pointed on each compatible release). Consumers pin @v1. Documents the decisions and their justification: why v1.0.0 rather than v0.x (a moving v0 alias would carry breaking changes by semver's own rules), why one tag covers all eight workflows plus the composite action, what counts as breaking, and the manual release procedure. Also records three findings from verifying the scheme: - .mergify.yml auto-merged the changesets/action v1->v2 major (PR #42). Its `head~=^(?!major-)` guard expects a branch prefix Renovate does not produce here, so majors merge unreviewed. - Renovate will bump tagged `uses:` refs — the org preset restricts no managers — but a moving @v1 alias produces no update PRs by design. - pnpm-verify.yml and pnpm-release-changeset.yml reference this repo's own setup-playwright@main, so a @v1 pin still leaks to main. Cannot be fixed before v1 exists; recorded as a known gap with its remedy.
|
Tick the box to add this pull request to the merge queue (same as
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Superseded by #45, which carries this branch's input fix and README forward. The correction: this PR applied the #45 splits the two instead — Your README is largely intact there; the changes are the pin-by-CLI-major table, the two-line branch layout, the OIDC section, and the release procedure covering both lines. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.