Skip to content

Commit 8ab2685

Browse files
authored
chore: use pnpm and update gh actions (#15)
1 parent cd2e032 commit 8ab2685

File tree

5 files changed

+1504
-2320
lines changed

5 files changed

+1504
-2320
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,29 @@ jobs:
1717
uses: actions/setup-node@v4
1818
with:
1919
node-version: 22
20-
cache: npm
20+
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 9
24+
25+
- name: Get pnpm store directory
26+
shell: bash
27+
run: |
28+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
29+
30+
- uses: actions/cache@v4
31+
name: Setup pnpm cache
32+
with:
33+
path: ${{ env.STORE_PATH }}
34+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
35+
restore-keys: |
36+
${{ runner.os }}-pnpm-store-
2137
2238
- name: Install dependencies
23-
run: npm ci
39+
run: pnpm install --frozen-lockfile
2440

2541
- name: Build with VitePress
26-
run: npm run docs:build
42+
run: pnpm run docs:build
2743

2844
- name: Generate CNAME
2945
run: echo "interview.doocs.org" > docs/.vitepress/dist/CNAME

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

0 commit comments

Comments
 (0)