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