This commit is contained in:
parent
2567534a9d
commit
2827c1f160
@ -31,15 +31,15 @@ jobs:
|
|||||||
node --version
|
node --version
|
||||||
npm --version
|
npm --version
|
||||||
|
|
||||||
# 检查并安装依赖(如果需要)
|
# # 检查并安装依赖(如果需要)
|
||||||
- name: Install dependencies if needed
|
# - name: Install dependencies if needed
|
||||||
run: |
|
# run: |
|
||||||
if [ ! -d "node_modules" ]; then
|
# if [ ! -d "node_modules" ]; then
|
||||||
echo "node_modules not found, installing dependencies..."
|
# echo "node_modules not found, installing dependencies..."
|
||||||
npm install
|
# npm install
|
||||||
else
|
# else
|
||||||
echo "node_modules already exists, skipping installation"
|
# echo "node_modules already exists, skipping installation"
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# 构建项目
|
# 构建项目
|
||||||
- name: Build project
|
- name: Build project
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user