Migrate CI setup to pnpm/setup
维护者通常 2 天内回复
评估
这个 Issue 还没有评估数据。
描述
.github/actions/setup/action.yml pins three things to get a build environment: pnpm/action-setup for pnpm, actions/setup-node for Node 22, and a pnpm install --frozen-lockfile step. pnpm's continuous integration docs now recommend a single action instead:
- uses: pnpm/setup@<sha> # v2.1.0
with:
runtime: node@22
cache: true
pnpm/setup installs pnpm, installs the runtime with pnpm runtime set and puts it on PATH (replacing actions/setup-node), caches the pnpm store, and runs pnpm install unless you pass install: false. Two pinned actions and an install step collapse into one.
Check before switching
- Store cache. #1110 moved the store cache to
pnpm/action-setup'scache: true, which keys onpnpm-cache-<os>-<arch>-<lockfile hash>and falls back to the last store for the platform, so a dependency bump fetches only what changed. Confirmpnpm/setupkeeps that fallback; without it every bump refetches the whole store. - Frozen installs. Its automatic
pnpm installmust stay frozen in CI, as--frozen-lockfiledoes today.require-lockfilelooks related. - Windows on ARM64. The
windows-11-armjob needspnpm runtime setto fetch awin32-arm64Node build. - Node version. CI runs Node 22 to match VS Code's Electron, and
engines.nodeis>= 22.runtime: node@22has to hold that, and CONTRIBUTING's list of files to update when the minimum moves needs this one added.
Baseline
Times from the run on #1110, for comparison after the switch:
| Job | Setup step, cold store |
|---|---|
| Unit Test (Linux) | 14s |
| Unit Test (Windows) | 69s |
| Unit Test (Windows ARM64) | 2m31s |
Pin by SHA, like the other actions. Latest release is v2.1.0.
- 主要语言
- TypeScript
- 星标
- 132
- 派生
- 48
- 平均合并
- 2 天 5 小时
- 30 天内合并 PR
- 19
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/vscode-coder 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 72/100
coder/vscode-coder#1141 · 1 条评论 ·
维护者通常 2 天内回复
-
bug tech-debt
难度 3/5 1-2 天 新手友好度 68/100
coder/vscode-coder#1140 · 1 条评论 ·
维护者通常 2 天内回复
-
Improvement tech-debt vs-code
难度 4/5 3-5 天 新手友好度 48/100
coder/vscode-coder#1135 · 1 条评论 ·
维护者通常 2 天内回复
-
Design the VS Code Workspaces panel可能已有人在做 @chrifro 于 26 天前认领。 未关闭
coder/vscode-coder#1113 · 3 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
bug upstream
难度 4/5 3-5 天 新手友好度 42/100
coder/vscode-coder#1087 · 1 条评论 ·
维护者通常 2 天内回复
查看 coder/vscode-coder 的全部 Issue
相似的 Issue
-
Table: Space fires onActivate in single-selection mode — the reference doc and the JSDoc disagree未关闭
难度 2/5 1-3 小时 新手友好度 68/100
sidorares/react-x11-components#764 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
backnotprop/plannotator#1840 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
JoviDeCroock/pracht#432 ·
维护者通常 1 天内回复
-
approved check:passed streams:add
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
Hardware attribute name "app Connection Support" has inconsistent casing可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
walletbeat/walletbeat#1628 ·
维护者通常 1 天内回复