Skip to content

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

Merged
YusukeHirao merged 5 commits into
devfrom
chore/repo-setup-ci
Dec 3, 2026
Merged

YusukeHirao merged 5 commits into
devfrom
chore/repo-setup-ci

Conversation

@YusukeHirao

Copy link
Copy Markdown
Member

内容

CI を @d-zero/release-automation の形に替える。

  • @d-zero/release-automation:0.1.2 を devDependencies に固定で入れる
  • package.json:読み取り専用の lint:check 系の scripts を足す(lint:eslint:check、lint:prettier:check、lint:textlint:check)。lint は、書き換えながら検査する形のまま
  • .github/workflows/test.yml:Minimum CI。ubuntu で yarn build、yarn lint:check、yarn test。ジョブは test、commit-check、lines-check、ci-ok。対象は dev・v6・main への PR と Merge Queue
    • これまでの macOS・Node 24 の実行は、Full CI に移す
    • Renovate の PR の yarn install --refresh-lockfile は外し、全 PR で yarn install --immutable にする
  • .github/workflows/full-ci.yml:Full CI。ubuntu と macOS で、Release PR と Nightly だけ動く。必須チェックは full-ci-ok
  • .github/workflows/nightly.yml:毎日、各系列の Full CI を起動し、release-blocker の Issue を管理する
  • .husky/pre-commit:系列のブランチへの直接のコミットを拒否する(release-automation guard)
  • SECURITY.md:サポートするバージョンと、非公開の報告窓口
  • .github/renovate.json:baseBranchPatterns を ["dev", "v6"] にする(lines-check の要件)。そのほかの Renovate の設定は、別の PR で標準の形にする
  • download-resources.spec.ts:16進数のリテラル(0xff)を 255 にする(下の注意)

確かめたこと

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

注意

  • yarn lint は、CI の中で書き換えながら通っていた。 読み取り専用の lint:check にすると、download-resources.spec.ts の 0xff が、ESLint(unicorn/number-literal-case は 0xFF を求める)と Prettier(0xff に整える)で衝突して、通らなかった。255 にして、どちらにも反しない形にした
  • dev の classic の保護は、必須チェックに test (macOS-latest, 24) を要求している。この PR でジョブを替えるので、そのチェックは出なくなる。この PR は Admin のバイパスでマージする。マージ後、保護を Ruleset に移す(必須チェックは ci-ok・lines-check)
  • v6 にも、同じ CI を入れる PR が別に要る。v6 への PR が、lines-check と ci-ok を持つのは、その後
  • v6 にも .github/release-lines.json が要る(別の PR)。dev にはすでにある

対象外

  • 公開経路(release-pr.yml、verify-release-pr.yml、publish.yml):別の手順
  • Renovate の標準の設定(approve-renovate.yml を含む):別の PR
  • GitHub の設定(Ruleset、Environment、App):リポジトリの外の変更で、別に行う
  • lerna.json の v6 の版、v5/alpha の扱い

🤖 Generated with Claude Code

YusukeHirao and others added 5 commits December 2, 2026 21:37
unicorn/number-literal-case wants 0xFF and Prettier writes 0xff, so a read-only
lint check cannot pass on a hexadecimal literal. The test uses 255.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
lint:check checks eslint, prettier, textlint and cspell without rewriting a
file, for the CI. lint keeps rewriting files for the local use.

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
- 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 7cdfad4 into dev Dec 3, 2026
5 checks passed
@YusukeHirao
YusukeHirao deleted the chore/repo-setup-ci branch December 3, 2026 02: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.

1 participant