Skip to content

Commit 37bdba5

Browse files
authored
Update deploy.yml
1 parent 9bb0a21 commit 37bdba5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,22 @@ jobs:
3232
uses: actions/checkout@v3
3333
with:
3434
fetch-depth: 0 # Not needed if lastUpdated is not enabled
35-
# - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
35+
- uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
36+
with:
37+
version: 8
3638
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
3739
- name: Setup Node
3840
uses: actions/setup-node@v3
3941
with:
4042
node-version: 18
41-
cache: npm # or pnpm / yarn
43+
cache: pnpm # or pnpm / yarn
4244
- name: Setup Pages
4345
uses: actions/configure-pages@v3
4446
- name: Install dependencies
45-
run: npm install # or pnpm install / yarn install / bun install
47+
run: pnpm install # or pnpm install / yarn install / bun install
4648
- name: Build with Slidev
4749
run: |
48-
npm run build # or pnpm docs:build / yarn docs:build / bun run docs:build
50+
pnpm run build # or pnpm docs:build / yarn docs:build / bun run docs:build
4951
- name: Upload artifact
5052
uses: actions/upload-pages-artifact@v2
5153
with:

0 commit comments

Comments
 (0)