Repository navigation
ci: Node 22.23.4 と lockfile 固定の Wrangler に全配備経路をそろえる - #320
Merged
Merged
Conversation
- .node-version (22.23.4) を正本にし、サイト配備・PR preview・CMS公開・ CMS認証Worker配備の全ジョブで setup-node の node-version-file から読む。 22.23.4 は eMudhra/emSign 中間CA の公開鍵を遮断する nodejs/node#66871 と NSS 3.131.1 への CA 更新 nodejs/node#66877 を含む。 - deploy-cms-auth に setup-node と npm ci を追加する。これまでは runner 既定の Node で動き、wrangler-action が lockfile 外の wrangler@4.119.0 を追加 インストールしていた (high 4件: miniflare 経由の undici / sharp)。 - wrangler を devDependencies に 4.151.3 で固定し、3か所の wranglerVersion を 削除する。wrangler-action v3 は wranglerVersion 未指定時に導入済みの Wrangler を使う。 - CMS認証Workerは repo root から --config で配備する。dry-run バンドルは 旧構成と同一 (sha1 9c9a06c1)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🔍 Cloudflare Workers preview: https://bluemoon-pr-320.tsubasa-azumagakito.workers.dev (このコメントは新しいpushのたびに更新されます) |
Owner
Author
実行ログと preview 確認(HEAD
|
npm 10.9.9 で作った lockfile は既存 24 entry の libc を落とし、sharp 系に dev フラグも付けていた。main の lockfile を書いている npm 11 系 (11.19.1) で wrangler@4.151.3 の追加だけをやり直し、既存 entry の分類を変えない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WthszjoYsBn39cjTaRXQ5M
This was referenced Oct 21, 2026
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.js 2026年10月セキュリティ更新と eMudhra/emSign 中間CA 問題への対応として、bluemoon の全配備経路を修正版 Node へそろえ、CI 中に追加インストールされていた Wrangler を lockfile で追跡できる構成にする。
対象 base:
main1743011be975b64b1f349e5a2c99e2ac30a4e58e変更点
.node-version=22.23.4を正本にし、以下4経路の setup-node をnode-version-file: .node-versionに統一main.ymlcloudflare-deploy(サイト配備)main.ymldeploy-cms-auth(これまで setup-node なし=runner 既定 Node)pr-preview.ymlcms-publish.ymlwranglerを rootdevDependenciesに4.151.3で exact 固定し、3か所のwranglerVersion: '4.119.0'を削除wranglerVersion未指定時、導入済み Wrangler を使う(v3dist/index.mjsのinstallWranglerで確認)npm ciを追加し、repo root からdeploy --config workers/sveltia-cms-auth/wrangler.tomlで配備.node-version、Wrangler は package.json/lock が正本」と手元配備手順を追記根拠
https.get既定設定):dv-g3b-emudhra.we-have-a-problem.comを v22.23.2 / v24.18.0 / v24.19.0 は 受理(200)、v22.23.4 / v24.22.1 はCERT_REVOKEDで拒否node: v22.23.3(runner cache)/usr/local/bin/npx(runner 既定 Node)でnpm i wrangler@4.119.0→4 high severity vulnerabilities検証(Node v22.23.4 / npm 10.9.9)
npm ci/npm run check: 0 errors, 0 warnings, 23 hints(main と同数)npm run build: 11 pagesdiff -rq差分なし(40 files)。lockfile で esbuild が 0.28.1→0.28.2 に共有更新されるが成果物は同一wrangler deploy --dry-run --outdirの bundle が旧構成(4.119.0・workingDirectory)と新構成(4.151.3・--config)で同一(sha19c9a06c1…)git diff --check: OK未確認・注意
cms-publish.ymlはcms-drafts上のファイルが使われる。main マージ後に main.yml の同期ステップでcms-draftsが早送りされるが、同期 push は GITHUB_TOKEN 経由のため cms-publish は発火しない。実コンテンツ公開を検証代わりにしないため、CMS 経路は「同期後のファイル内容」で確認するfe24e7e)。main との差分は wrangler 4.151.3 と依存 29 entry の追加、esbuild 0.28.1→0.28.2(wrangler が exact 指定)のみで、既存 entry のlibc・dev 分類は変えない。CI の npm 10.9.9 でnpm ci420 packages・check・build・dist 同一を確認🤖 Generated with Claude Code