This commit is contained in:
parent
016a668392
commit
e13c5fc102
@ -17,11 +17,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y curl
|
# 更新 apt 包管理器并安装必要的工具
|
||||||
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
|
apt-get update && apt-get install -y curl gnupg2 lsb-release ca-certificates
|
||||||
apt-get install -y nodejs
|
|
||||||
node -v
|
# 安装 Node.js 20.x
|
||||||
npm -v
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||||
|
apt-get install -y nodejs
|
||||||
|
|
||||||
|
# 验证安装是否成功
|
||||||
|
node -v
|
||||||
|
npm -v
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
|
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user