Skip to content

ci: reduce duplicate release workflow runs - #273

Merged
fforootd merged 7 commits into
mainfrom
codex/reduce-duplicate-release-runs
Jun 12, 2026
Merged

ci: reduce duplicate release workflow runs#273
fforootd merged 7 commits into
mainfrom
codex/reduce-duplicate-release-runs

Conversation

@fforootd

Copy link
Copy Markdown
Member

Summary

  • limit release-npm main-branch runs to release-relevant files
  • wait for the matching ci.yml push run to pass before Changesets can publish
  • extend the alpha release-plan guard and docs so the new workflow shape stays intentional

Validation

  • corepack pnpm nx test @zitadel/cli -- tests/unit/scripts/check-alpha-release-plan.test.ts
  • corepack pnpm run check -- --only release

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nextgen Ready Ready Preview, Comment Jun 12, 2026 7:49pm

Request Review

@fforootd
fforootd marked this pull request as ready for review June 12, 2026 17:27
Copilot AI review requested due to automatic review settings June 12, 2026 17:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the npm release workflow shape to avoid unnecessary runs on main and to ensure publishing only happens after the corresponding ci.yml push run has succeeded, with tooling/tests/docs updated to keep the new contract intentional.

Changes:

  • Restricts .github/workflows/release-npm.yml main-push triggers to release-relevant paths and grants actions: read.
  • Adds a “wait for main CI” gate (via gh run list ... --commit "$GITHUB_SHA") ahead of changesets/action@v1 publishing.
  • Extends the alpha-train guard script, unit tests, and release documentation/ADRs to reflect and enforce the new workflow behavior.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/check-alpha-release-plan.mjs Enforces new release workflow invariants (path filters, actions: read, and “wait for main CI” before Changesets).
docs/runbooks/release-alpha-train.md Updates runbook steps to note the main CI wait as part of the release flow.
docs/adrs/023-lockstep-alpha-release-train.md Updates ADR to reflect waiting for main CI prior to publishing.
docs/adrs/002-multi-package-release-strategy.md Updates release strategy ADR to describe the main CI wait behavior.
apps/cli/tests/unit/scripts/check-alpha-release-plan.test.ts Adds unit coverage for the new workflow guard requirements.
.github/workflows/release-npm.yml Adds path filters, actions: read, and a polling wait step for the matching ci.yml push run.
.changeset/release-main-ci-wait.md Adds an empty changeset for this CI/workflow-only change.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/ci.yml
Comment thread docs/runbooks/release-alpha-train.md Outdated
@fforootd
fforootd merged commit 99af296 into main Jun 12, 2026
18 checks passed
@fforootd
fforootd deleted the codex/reduce-duplicate-release-runs branch June 12, 2026 20:16
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.

2 participants