Repository navigation
feat(workflows): merge cyberuni's verify and changeset release workflows - #97
Merged
Merged
Conversation
Part of #94, step 1 (merge plan D4, D6, D7, decision Q6). - D4 pnpm-verify.yml: cyberuni as the base (fail-fast: false, setup-node-pnpm, skip-codecov, codecov-node-version, Xvfb only on Linux and only when Playwright runs). Add repobuddy's `command` and `codecov-flags` inputs and the snapshot artifact upload, named per leg so two failing legs do not collide. - D6 pnpm-release-changeset.yml: cyberuni (least permissions, OIDC publish, a `node-version` input, no .npmrc token). This drops repobuddy's NPM_TOKEN heredoc, which had no terminator. vsce is now opt-in through `install-vsce`, and Playwright through `skip-playwright`. - D7 pnpm-release-changeset-oidc.yml: keep cyberuni's fix that leaves out `registry-url`, keep npm@latest on this v2 line, make vsce opt-in and the Playwright install skippable, and drop the unused PLAYWRIGHT_PATH env. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: unional <homawong@gmail.com>
|
|
This pull request is merged. |
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.
Part of #94, step 1. This PR covers merge plan items D4, D6 and D7 and follows decision Q6. It is one of four PRs for this step.
D4:
pnpm-verify.ymlfail-fast: false,setup-node-pnpm,skip-codecov,codecov-node-version, and Xvfb only on Linux and only when Playwright runs.commandandcodecov-flagsinputs and the snapshot artifact upload.xvfb-run -a pnpm <command>on ubuntu becomes a backgroundXvfb :99on Linux withDISPLAYset.snapshots-<os>-<job index>instead ofsnapshots. Withfail-fast: false, two failing legs would otherwise both uploadsnapshotsand the second upload fails with a name conflict.codecov-node-version(lts/*). Before, the leg was hardcoded aslts/*, so the result is the same with the defaults.D6:
pnpm-release-changeset.ymlid-token: write,contents: read; theCI_GITHUB_TOKENPAT does the writes), OIDC publish, anode-versioninput, and no.npmrctoken. This also drops repobuddy's.npmrcheredoc, which had noEOFterminator.repobuddy/.github'spnpm-release-changeset.yml. DroppingNPM_TOKENtherefore breaks no current repobuddy caller. Any caller that does arrive needs a trusted publisher registered.node-versiondefault is'24', to match the OIDC sibling (cyberuni has'22');npm@latest, notnpm@11(see Q6 below);pnpm-versionis passed topnpm/action-setup.vsceis opt-in throughinstall-vsce(defaultfalse). Playwright can be skipped withskip-playwright.D7:
pnpm-release-changeset-oidc.ymlregistry-url.npm@latest, becausemainis the v2 line (changesets cli v3). #77 records the evidence. cyberuni's comment claims npm 12 breaks cli v3's pnpm path; #77 tested that path and found it works.vsceis now opt-in throughinstall-vsce(defaultfalse). Before, it was always installed. Code search findsvsceonly inrepobuddy/vscode-sort-package-json, which does not use this workflow.skip-playwright(defaultfalse, so behaviour is unchanged).PLAYWRIGHT_PATHenv. Nothing in these workflows orsetup-playwrightreads it. The callers that use it (visual-testing,storybook,repobuddy) set their own in their own jobs.GITHUB_TOKENenv on the changesets step. changesets/action v2 reads thegithub-tokeninput instead, which defaults to the built-in token.pnpm-versionis now passed topnpm/action-setup.Not in this PR
npm@11on the v1 line.v1is a frozen tag with no branch, and fixing it means moving the tag. That is a release decision, so it is held for the Council.Merge order
This PR depends on #95, which imports
actions/setup-node-pnpm. Both must be in the same release.Checks
actionlintpasses on the three changed workflows.🤖 Generated with Claude Code