CI: drop EOL Node 20, test Node 24; remove long-lived NPM_TOKEN and pin npm in the publish job
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 45/100
- Issue 類型
- 重構
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, typescript
研究方向
Start with .github/workflows/ci.yml (the Node matrix near line 15) and .github/workflows/publish.yml, where npm install -g npm@latest is on line 24 and NODE_AUTH_TOKEN is on line 30. Also update engines.node in package.json, plus the Node version mentions in CONTRIBUTING and the README. Done when the matrix is only 22 and 24, engines is >=22, the publish job has no NODE_AUTH_TOKEN, npm is pinned, and actions use commit SHAs. Deleting the secret and changing the npm token setting need a maintainer with repository and npm access.
由索引模型根據 Issue 內容生成。
描述
Why
- Node 20 reached end of life on 2026-04-30. CI still tests 20 and 22 (
.github/workflows/ci.yml:15),enginessays>=20.0.0, and CONTRIBUTING says "Node.js 20 or later". Node 24 is the current Active LTS and isn't tested at all, even though it's what new users will install. - Release pipeline hygiene (
.github/workflows/publish.yml):npm install -g npm@latest(line 24) pulls an unpinned npm into the job that publishes the package.- The job sets
id-token: writeand publishes with--provenance(v0.7.0 notes say trusted publishing was adopted), yet it still passesNODE_AUTH_TOKEN: secrets.NPM_TOKEN(line 30). If trusted publishing is configured, the long-lived token is unnecessary attack surface and should be revoked. - Actions are pinned by tag, not commit SHA.
None of this is exploitable today. It's standard supply-chain hardening for a package that holds users' publisher API keys at runtime.
Suggested approach
- CI matrix:
[22, 24]. Setengines.nodeto>=22. Update CONTRIBUTING and the README. - Publish: pin npm to an exact version (or use the npm bundled with Node 24). Remove
NODE_AUTH_TOKEN, delete theNPM_TOKENsecret, and confirm on npmjs.com that trusted publishing is the only publish path ("disallow tokens" setting). - Pin actions by commit SHA. Dependabot (already set up for actions) keeps the pins current.
- Optionally add a
workflow_dispatchdry-run of the publish job (npm publish --dry-run) to check releases before tagging.
Done when
CI runs on supported Node versions only, the publish job has no long-lived npm token, and every tool in the release path is pinned.
- 主要語言
- TypeScript
- 星號
- 5
- 分支
- 2
- 平均合併
- 1 小時 32 分鐘
- 30 天內合併 PR
- 3
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TMHSDigital/steam-mcp 的其他 Issue
-
documentation good first issue priority: low
難度 2/5 1-3 小時 新手友好度 82/100
TMHSDigital/steam-mcp#95 ·
-
documentation good first issue priority: low
難度 1/5 1 小時以內 新手友好度 82/100
TMHSDigital/steam-mcp#94 ·
-
documentation priority: medium
難度 2/5 1-3 小時 新手友好度 55/100
TMHSDigital/steam-mcp#79 · 1 則留言 ·
-
decision feature priority: medium
難度 5/5 一週以上 新手友好度 15/100
TMHSDigital/steam-mcp#60 · 1 則留言 ·
-
decision marketing priority: low
難度 3/5 1-2 天 新手友好度 12/100
TMHSDigital/steam-mcp#50 ·
查看 TMHSDigital/steam-mcp 的全部 Issue
相似的 Issue
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaude未關閉
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
Area: API Bug Difficulty: Low Priority: Low
難度 2/5 1-3 小時 新手友好度 62/100
DouglasNeuroInformatics/OpenDataCapture#1937 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
agent-canvas bug oh-gpt-fleet priority:medium ready-for-dev UI/UX
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
good first issue javascript test
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 2 天內回覆