File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
10- node_version : ["18"]
10+ node_version : ["18", "20", "22", "24" ]
1111 steps :
1212 - uses : actions/checkout@v2
1313
Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -
2727RUN true \
2828 # npm 配置 npmmirror 国内源
2929 && npm config set registry https://registry.npmmirror.com || true \
30- # 修复 yarn 权限问题(官方预安装 yarn 可能存在执行权限不足,ARM 环境同样适用)
31- && chmod a+x /usr/local/bin/yarn || true \
30+ # 启用 corepack 并安装最新版 yarn
31+ && corepack enable \
32+ && corepack prepare yarn@stable --activate \
3233 # yarn 配置 npmmirror 国内源
3334 && yarn config set registry https://registry.npmmirror.com || true \
3435 # 全局安装 pnpm(Node 官方镜像默认不含,通过 npm 内置命令安装,ARM 兼容)
You can’t perform that action at this time.
0 commit comments