Skip to content

Commit 9f965c8

Browse files
committed
ci: use yarn install in github actions workflow
1 parent 5b259b5 commit 9f965c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
uses: actions/setup-node@v4
3232
with:
3333
node-version: 20 # 或者指定一个 LTS 版本
34-
cache: 'npm'
34+
cache: 'yarn'
3535
- name: Install dependencies
36-
run: npm ci # 使用 npm ci 更快更可靠
36+
run: yarn install --frozen-lockfile
3737
- name: Build
3838
run: npm run build
3939
- name: Setup Pages

0 commit comments

Comments
 (0)