Skip to content

Commit b9eea1c

Browse files
committed
chore: use pnpm and update gh actions
1 parent f7fe393 commit b9eea1c

5 files changed

Lines changed: 1492 additions & 2324 deletions

File tree

.github/workflows/compress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: github.repository == 'doocs/technical-books'
1717
steps:
1818
- name: Checkout Branch
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: Compress Images
2222
id: calibre

.github/workflows/deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v4
18+
1619
- name: Setup Node.js
1720
uses: actions/setup-node@v4
1821
with:
1922
node-version: 22
20-
cache: npm
23+
cache: pnpm
2124

2225
- name: Install dependencies
23-
run: npm ci
26+
run: pnpm install --frozen-lockfile
2427

2528
- name: Build with VitePress
26-
run: npm run docs:build
29+
run: pnpm run docs:build
2730

2831
- name: Generate CNAME
2932
run: echo "book.doocs.org" > docs/.vitepress/dist/CNAME

0 commit comments

Comments
 (0)