Skip to content

⬆️ Node.js を 24 にアップデート#2257

Merged
ChenCMD merged 1 commit intomasterfrom
fix/action_runtime-env
Apr 18, 2026
Merged

⬆️ Node.js を 24 にアップデート#2257
ChenCMD merged 1 commit intomasterfrom
fix/action_runtime-env

Conversation

@haiiro2gou
Copy link
Copy Markdown
Member

No description provided.

@haiiro2gou haiiro2gou marked this pull request as ready for review April 18, 2026 03:55
@haiiro2gou haiiro2gou requested a review from ChenCMD as a code owner April 18, 2026 03:55
Copilot AI review requested due to automatic review settings April 18, 2026 03:55
@ChenCMD ChenCMD merged commit d7d3a52 into master Apr 18, 2026
4 checks passed
@ChenCMD ChenCMD deleted the fix/action_runtime-env branch April 18, 2026 03:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

GitHub Actions の datapack-linter ワークフローに対して、チェックアウト Action の更新と TypeScript 実行環境(ts-node)の最小設定を調整し、宣言ファイル生成の CI 実行を安定させることを目的とした変更です。

Changes:

  • actions/checkout を(Asset リポジトリ側の checkout のみ)v5 に更新
  • CI 上で生成する tsconfig.jsontypes: ["node"] を追加して Node 型定義を明示

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if: ${{ github.ref == 'refs/heads/master'}}
run: |
npm i -g ts-node
npm i -D @types/node
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm i -D @types/node will always install the latest @types/node, which can change independently of the runner’s Node version and cause sudden CI breakages. Consider pinning @types/node to the intended major (e.g., 24.x if you’re standardizing on Node 24) or deriving it from the Node version you set via setup-node.

Suggested change
npm i -D @types/node
NODE_MAJOR="$(node -p "process.versions.node.split('.')[0]")"
npm i -D "@types/node@${NODE_MAJOR}"

Copilot uses AI. Check for mistakes.
Comment on lines 38 to +43
- name: Setup minimum typescript code runner
if: ${{ github.ref == 'refs/heads/master'}}
run: |
npm i -g ts-node
npm i -D @types/node
echo '{"compilerOptions": {"target": "ESNext"}}' > ./tsconfig.json
echo '{"compilerOptions": {"target": "ESNext", "types": ["node"]}}' > ./tsconfig.json
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title says Node.js is being updated to 24, but this workflow doesn’t install/pin any Node version (it relies on whatever is preinstalled on ubuntu-latest). If the intent is to run on Node 24, add an explicit actions/setup-node step (or similar) and set the version to 24 so the runtime and @types/node align and the change matches the PR description.

Copilot uses AI. Check for mistakes.
Comment on lines 28 to 31
- name: Checkout Asset2
if: ${{ github.ref == 'refs/heads/master' }}
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the second checkout step was bumped to actions/checkout@v5, but the primary Checkout step at the top of the job is still on @v3. Mixing major versions in the same workflow makes maintenance harder and can leave you on an older runtime/security posture for the main checkout; consider updating the initial checkout to the same major version as well.

Copilot uses AI. Check for mistakes.
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.

3 participants