Provide `allow-prereleases` option for Node.js 27 Alpha
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 62/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, node.js, typescript
研究方向
Read the version input handling and Node.js version resolution entry points, then compare how actions/setup-python handles allow-prereleases, as linked in the issue. Check the existing tests for version selection and add coverage for the default false behavior and enabling prerelease resolution. Done when node-version: 27 selects the available alpha only with the option enabled.
由索引模型根據 Issue 內容生成。
描述
Description:
Add an option allow-prereleases, like in actions/setup-python, so that Node.js 27 Alpha can be selected simply using:
- uses: actions/setup-node@v7
with:
node-version: 27
allow-prereleases: true
allow-prereleases should default to false.
Justification:
Evolving the Node.js Release Schedule explains how Node.js has introduced a 6 month Alpha phase for new Node.js release lines. This is important for pre-testing and it replaces the previous system of odd- and even-numbered releases, where only the even-numbered release lines were promoted to LTS (Long Term Support).
For ongoing CI testing during the 6 month Alpha phase, GitHub Actions workflows need to be able to specify a generic version of Node.js 27 without having to update a workflow every time there is a new Alpha release (probably every 2 weeks):
None of the following are currently recognized:
2727.0.027.0.0-alpha
only the explicit 27.0.0-alpha.0.0.0 is working:
- uses: actions/setup-node@v7
with:
node-version: 27.0.0-alpha.0.0.0
Are you willing to submit a PR?
No, I won't be able to do this.
Workaround
Specify the exact Node.js Alpha version or latest:
- uses: actions/setup-node@v7
with:
node-version: 27.0.0-alpha.0.0.0
Edit: according to the discussion in https://github.com/actions/setup-node/issues/1660 latest will be changed to install the latest non-alpha version, so the following will not be a future workaround:
- uses: actions/setup-node@v7
with:
node-version: latest
Logs
Run actions/setup-node@v7
Attempting to download 27.0.0-alpha.0.0.0...
Not found in manifest. Falling back to download directly from Node
Acquiring 27.0.0-alpha.0.0.0 - x64 from https://nodejs.org/dist/v27.0.0-alpha.0.0.0/node-v27.0.0-alpha.0.0.0-linux-x64.tar.gz
Extracting ...
/usr/bin/tar xz --strip 1 --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/c05d6fa5-ba28-44d7-91cc-40190b158d8f -f /home/runner/work/_temp/92c81dc9-5787-4156-bc71-a2b3900392cf
Adding to the cache ...
Done
Environment details
node: v27.0.0-alpha.0.0.0
npm: 12.1.0
yarn: 1.22.22
- 主要語言
- TypeScript
- 星號
- 5k
- 分支
- 1.7k
- 平均合併
- 2 天 4 小時
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
actions/setup-node 的其他 Issue
-
feature request
難度 2/5 1-3 小時 新手友好度 65/100
actions/setup-node#1531 · 1 則留言 · 4 個 reaction ·
維護者通常 3 天內回覆
-
bug
難度 3/5 1-2 天 新手友好度 45/100
actions/setup-node#1660 · 3 則留言 · 1 個 reaction ·
維護者通常 3 天內回覆
-
Improved error message when a required os lib is missing可能已有人在做 @OKAN-SOFTWARE 於 6 天前認領。 未關閉feature request
難度 3/5 1-2 天 新手友好度 55/100
actions/setup-node#1651 · 1 則留言 ·
維護者通常 3 天內回覆
-
Volta extends resolution in getNodeVersionFromFile has no cycle detection, recursing until stack overflow可能已有人在做 @v-gowridurgad 於 54 天前認領。 未關閉bug
actions/setup-node#1628 · 3 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
-
`npm config get cache` fails with `EBADDEVENGINES` when requiring newer npm versions in `devEngines`未關閉feature request
難度 4/5 3-5 天 新手友好度 52/100
actions/setup-node#1553 · 15 則留言 · 2 個 reaction ·
維護者通常 3 天內回覆
查看 actions/setup-node 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
Open-Earth-Foundation/CityCatalyst#3399 ·
維護者通常 2 天內回覆
-
userReport
難度 1/5 1 小時以內 新手友好度 72/100
nkprasad12/morcus-net#631 ·
維護者通常 1 天內回覆
-
fix(app): fail closed if GetGeneralSetting fails during initialization可能已有人在做 @kalavt 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
nekko-labs/nekko-agent#1756 ·
維護者通常 1 天內回覆
-
needs-area-label
難度 2/5 1-3 小時 新手友好度 66/100
維護者通常 2 天內回覆