Skip to content

chore(github): add the release-automation CI - #1130

Merged
YusukeHirao merged 4 commits into
v6from
chore/repo-setup-ci-v6
Dec 3, 2026
Merged

YusukeHirao merged 4 commits into
v6from
chore/repo-setup-ci-v6

Conversation

@YusukeHirao

Copy link
Copy Markdown
Member

内容

dev に入れた CI(#1127)を、v6 にも入れる。v6 は、oxlint と oxfmt を使うので、yarn lint が、もともと読み取り専用。lint:check は足さず、ワークフローで yarn lint を使う。

  • @d-zero/release-automation:0.1.2 を devDependencies に固定で入れる
  • .github/workflows/test.yml:Minimum CI。ubuntu で yarn build、yarn lint、yarn test。ジョブは test、commit-check、lines-check、ci-ok。対象は dev・v6・main への PR と Merge Queue
  • .github/workflows/full-ci.yml:Full CI。ubuntu と macOS で、Release PR と Nightly で動く。v6 は Merge Queue を使う系列なので、merge_group に対応する(Queue に Release PR が含まれるときだけ動く。ほかは、省いて full-ci-ok を成功させる)。必須チェックは full-ci-ok
  • .github/workflows/nightly.yml:dev の写し(schedule は、既定ブランチの dev のものだけが動く)
  • .husky/pre-commit:系列のブランチへの直接のコミットを拒否する(release-automation guard)
  • SECURITY.md:dev の写し
  • .github/renovate.json:baseBranchPatterns を ["dev", "v6"] にする(lines-check の要件)。そのほかの Renovate の設定は、別の PR

確かめたこと

  • actionlint、release-automation lines-check が通る
  • yarn lint、yarn build、yarn test が通る(29ファイル・454件)

注意

  • v6 には、まだ保護がない。この PR のマージ後に、v6 の Ruleset(必須チェックは ci-ok・lines-check・full-ci-ok、Merge Queue あり)を作る
  • full-ci.yml の merge_group 対応は、このワークフローがマージされてから、Queue の中で動く。Ruleset の merge_queue は、このマージの後に足す(先に足すと、Queue の中で full-ci-ok が動かず、マージが止まる)

対象外

  • 公開経路、Renovate の標準の設定、GitHub の設定(Ruleset、Environment、App):別の手順
  • v6 の lerna.json の版(5.4.2 のまま):最初の Release PR の前に、6.0.0-alpha.0 にする PR が別に要る

🤖 Generated with Claude Code

YusukeHirao and others added 4 commits December 3, 2026 11:18
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- test.yml: the Minimum CI on ubuntu (test, commit-check, lines-check, ci-ok),
  for dev, v6 and main, and for the merge queue
- full-ci.yml: the Full CI on ubuntu and macOS for Release PRs and the Nightly.
  The merge queue runs it only when it holds a Release PR
- nightly.yml: the Full CI of each line once a day, the release-blocker Issues
- renovate.json: baseBranchPatterns [dev, v6], which lines-check requires

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
release-automation guard reads the line branches from release-lines.json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
It lists the supported versions and the private way to report a vulnerability.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@YusukeHirao
YusukeHirao merged commit ebf08c7 into v6 Dec 3, 2026
7 checks passed
@YusukeHirao
YusukeHirao deleted the chore/repo-setup-ci-v6 branch December 3, 2026 02:22
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