chore: Node を最新 LTS に上げ、Dependabot の自動マージを追加する - #111
Merged
Conversation
- .node-version と CI を Node 24(最新 LTS 24.18.0)に。利用側の a-blog cms も Node 24 系で 動かしており、開発・CI の環境をそろえる。Node 24 でビルドとテスト 24 件が通ることを確認済み - Dependabot 自体にマージ機能は無いため、auto-merge を有効化するワークフローを追加する。 pull_request_target を使うのは、Dependabot 起動のワークフローでは通常の secrets が 参照できないため。メジャーは dependabot.yml で対象外だが、設定変更時の事故を防ぐため ここでも除外している 自動マージを実際に動かすにはリポジトリ側の設定が別途必要: - Settings > General > Allow auto-merge を ON にする - ブランチ保護(ruleset)の必須チェックに CI を含める
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
.node-versionと CI を Node 24(最新 LTS 24.18.0) に更新。利用側の a-blog cms も Node 24 系で動かしており、開発・CI の環境をそろえるgh pr merge --autoで auto-merge を有効化する形で補う。メジャーはdependabot.ymlで対象外だが、設定変更時の事故を防ぐためワークフロー側でも除外しているmainは ruleset で保護されているため直接 push ではなく PR にしています。検証
Node 24 で
npm ci/npm run build/ テスト 24 件がすべて通ることを確認済み。マージ後に必要なリポジトリ設定
自動マージを実際に動かすには GitHub 側の設定が別途必要です。