Skip to content

Commit da20be6

Browse files
committed
add node version
1 parent 8705272 commit da20be6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
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

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -
2727
RUN 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 兼容)

0 commit comments

Comments
 (0)