Skip to content

ci(release): call the shared npm release workflow - #9

Merged
PerfectPan merged 1 commit into
mainfrom
ci/shared-release-workflow
Nov 12, 2026
Merged

PerfectPan merged 1 commit into
mainfrom
ci/shared-release-workflow

Conversation

@PerfectPan

Copy link
Copy Markdown
Owner

Summary

The template's Release workflow becomes a caller of the shared workflow PerfectPan/gh-repo-checks/.github/workflows/npm-release.yml@v1 (gh-repo-checks v1.3.0). Repositories created from the template then start on the shared release flow instead of copies of it.

  • publish-npm.yml keeps its file name for trusted publishers and calls the shared workflow with the default inputs: pnpm run check, pnpm audit --prod --audit-level=high, pnpm run version-packages and the first-publish check.
  • gh-repo-checks now owns the release-plan and first-publish checks, so the following are removed:
    • scripts/check-release-plan.mjs and scripts/check-first-publish.mjs;
    • their tests;
    • the helper devDependencies @changesets/config, @changesets/get-release-plan, @changesets/should-skip-package and @manypkg/get-packages.
  • ci.yml runs gh repo-checks release-plan after the install, and pnpm run check no longer runs the local copy. The scripts package keeps its test script with --passWithNoTests.
  • docs/development/release.md keeps what the template decides: changeset rules, versioning, first release and the example package's setup, bot PRs and CI policy. For the jobs, release steps and recovery it links the shared runbook. README follows.

The example package is private, so Release runs in mode none on every push here. Its first run is a no-risk check that the shared select job checks out gh-repo-checks at job.workflow_sha.

Validation

  • pnpm install, then pnpm install --frozen-lockfile: ok. The lockfile only drops the four helper packages.
  • pnpm run check: passed.
  • gh repo-checks release-plan reports ok with 0 records. gh repo-checks first-publish version reports ok.
  • actionlint 1.7.12 on .github/workflows/*.yml: passed. gh repo-checks repository --staged: ok.
  • A reviewer subagent reviewed this branch.
  • Not run: the shared workflow on GitHub; the merge push runs it in mode none.

publish-npm.yml now calls PerfectPan/gh-repo-checks' npm-release.yml with the
default inputs, and CI runs its release-plan check. The local release-plan and
first-publish scripts, their tests and their helper dependencies are gone, and
the runbook keeps only what the template decides, linking the shared runbook
for the rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PerfectPan
PerfectPan merged commit 986f51c into main Nov 12, 2026
5 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