From 70253c41394e019a3e2f41c54962e79761a02178 Mon Sep 17 00:00:00 2001 From: coela-oss <147021942+coela-oss@users.noreply.github.com> Date: Tue, 27 Oct 2026 18:30:07 +0900 Subject: [PATCH] ci: verify Node 22 compatibility and retain baseline type definitions --- .github/dependabot.yml | 4 ++++ .github/workflows/prepare-npm-artifact.yml | 10 ++++++++-- README.ja.md | 2 ++ README.md | 2 ++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 992cf42..5eddf67 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,6 +7,10 @@ updates: interval: daily time: '05:00' timezone: Asia/Tokyo + # Keep Node types aligned with the Node 22 runtime baseline; minor/patch updates remain enabled. + ignore: + - dependency-name: "@types/node" + update-types: ["version-update:semver-major"] open-pull-requests-limit: 10 groups: compatible-updates: diff --git a/.github/workflows/prepare-npm-artifact.yml b/.github/workflows/prepare-npm-artifact.yml index eff8469..4534382 100644 --- a/.github/workflows/prepare-npm-artifact.yml +++ b/.github/workflows/prepare-npm-artifact.yml @@ -8,6 +8,10 @@ permissions: contents: read jobs: npm-package: + strategy: + fail-fast: false + matrix: + node: ['22', '24.22.1'] runs-on: ubuntu-24.04 timeout-minutes: 15 steps: @@ -40,7 +44,7 @@ jobs: PYCODE - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 with: - node-version: '24.22.1' + node-version: ${{ matrix.node }} package-manager-cache: false - name: Isolate public registry configuration run: | @@ -60,6 +64,7 @@ jobs: pnpm run check:tooling node scripts/verify-packed-consumer.mts - name: Pack exact source distributions without lifecycle hooks + if: matrix.node == '24.22.1' run: | mkdir outgoing npm pack --ignore-scripts --json --pack-destination "$GITHUB_WORKSPACE/outgoing" @@ -67,7 +72,8 @@ jobs: (cd packages/document-markdown && npm pack --ignore-scripts --json --pack-destination "$GITHUB_WORKSPACE/outgoing") printf '%s\n' "$GITHUB_SHA" > outgoing/source-sha.txt (cd outgoing && sha256sum ./*.tgz > SHA256SUMS) - - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 + - if: matrix.node == '24.22.1' + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 with: name: reviewed-npm-packages path: outgoing/ diff --git a/README.ja.md b/README.ja.md index 8356ce7..9c46b36 100644 --- a/README.ja.md +++ b/README.ja.md @@ -31,3 +31,5 @@ pnpm test:consumer Dependency updates: [repository policy](docs/dependency-updates.md). Registry releases: [version tags and GitHub OIDC](docs/registry-release.md). + +CIではNode.js 22の最新パッチと24.22.1で、ビルド・型検査・ワークスペースのテスト・依存監査・開発ツール・配布パッケージの利用側を検証します。公開用の検証済みアーカイブは24.22.1でのみ生成し、両方のジョブの成功を必要とします。最低対応ランタイムに合わせて`@types/node`は22系を維持し、Dependabotのマイナー・パッチ更新は継続します。型定義のメジャー更新は、対応ランタイムの見直し時に行います。 diff --git a/README.md b/README.md index 991a89b..78e5a99 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,5 @@ Starting with 0.11.1, releases use GitHub Actions OIDC trusted publishing from ` Dependency updates: [repository policy](docs/dependency-updates.md). Registry releases: [version tags and GitHub OIDC](docs/registry-release.md). + +CI validates builds, type checking, workspace tests, dependency audit, tooling and packed consumers on the latest Node.js 22 patch and Node.js 24.22.1. Reviewed publication archives are produced only on Node.js 24.22.1, and both matrix jobs must pass. Keep `@types/node` on 22.x to match the minimum supported runtime; Dependabot continues minor and patch updates while major type updates require a deliberate runtime-baseline change.