Skip to content

Commit f6205b8

Browse files
committed
chore: ci add task to deploy demo
1 parent 1157ee2 commit f6205b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
# Step 1: 检出源仓库代码
1414
- name: Checkout Source Repository
1515
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0 # 拉取完整历史记录
1618

1719
# Step 2: 检查 package.json 的版本号是否变化
1820
- name: Check for Version Change
@@ -40,10 +42,10 @@ jobs:
4042
run: |
4143
# 克隆目标仓库
4244
git clone https://x-access-token:${TARGET_REPO_TOKEN}@github.com/VueFilesPreview/vue-files-preview-demo.git vue-files-preview-demo
43-
4445
# 进入目标仓库目录
4546
cd vue-files-preview-demo
46-
47+
# 安装依赖
48+
npm install
4749
# 确保脚本有执行权限
4850
npm run gh
4951

0 commit comments

Comments
 (0)