Skip to content

feat(workflows): merge cyberuni's verify and changeset release workflows - #97

Merged
unional merged 1 commit into
mainfrom
feat/merge-verify-release
Nov 15, 2026
Merged

unional merged 1 commit into
mainfrom
feat/merge-verify-release

Conversation

@unional

@unional unional commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

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.yml

  • Takes cyberuni as the base: fail-fast: false, setup-node-pnpm, skip-codecov, codecov-node-version, and Xvfb only on Linux and only when Playwright runs.
  • Adds repobuddy's command and codecov-flags inputs and the snapshot artifact upload.
  • Behaviour changes for existing repobuddy callers:
    • xvfb-run -a pnpm <command> on ubuntu becomes a background Xvfb :99 on Linux with DISPLAY set.
    • The artifact is named snapshots-<os>-<job index> instead of snapshots. With fail-fast: false, two failing legs would otherwise both upload snapshots and the second upload fails with a name conflict.
    • Coverage now uploads from the leg that matches codecov-node-version (lts/*). Before, the leg was hardcoded as lts/*, so the result is the same with the defaults.

D6: pnpm-release-changeset.yml

  • Takes cyberuni: least permissions (id-token: write, contents: read; the CI_GITHUB_TOKEN PAT does the writes), OIDC publish, a node-version input, and no .npmrc token. This also drops repobuddy's .npmrc heredoc, which had no EOF terminator.
  • Code search finds no caller of repobuddy/.github's pnpm-release-changeset.yml. Dropping NPM_TOKEN therefore breaks no current repobuddy caller. Any caller that does arrive needs a trusted publisher registered.
  • Differs from cyberuni in three ways:
    • the node-version default is '24', to match the OIDC sibling (cyberuni has '22');
    • it installs npm@latest, not npm@11 (see Q6 below);
    • pnpm-version is passed to pnpm/action-setup.
  • vsce is opt-in through install-vsce (default false). Playwright can be skipped with skip-playwright.

D7: pnpm-release-changeset-oidc.yml

  • Keeps cyberuni's fix that leaves out registry-url.
  • Keeps npm@latest, because main is 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.
  • vsce is now opt-in through install-vsce (default false). Before, it was always installed. Code search finds vsce only in repobuddy/vscode-sort-package-json, which does not use this workflow.
  • The Playwright install now sits behind skip-playwright (default false, so behaviour is unchanged).
  • Drops the job-level PLAYWRIGHT_PATH env. Nothing in these workflows or setup-playwright reads it. The callers that use it (visual-testing, storybook, repobuddy) set their own in their own jobs.
  • Drops the GITHUB_TOKEN env on the changesets step. changesets/action v2 reads the github-token input instead, which defaults to the built-in token.
  • pnpm-version is now passed to pnpm/action-setup.

Not in this PR

  • Q6's npm@11 on the v1 line. v1 is 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

actionlint passes on the three changed workflows.

🤖 Generated with Claude Code

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>
@changeset-bot

changeset-bot Bot commented Nov 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 647a427

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mergify

mergify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@unional
unional merged commit 99c82b0 into main Nov 15, 2026
3 checks passed
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.

1 participant