Skip to content

Commit 8a2d084

Browse files
committed
build: switch to yarn in Github Action
1 parent 59e977a commit 8a2d084

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,19 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v6
3636
with:
3737
fetch-depth: 0 # Not needed if lastUpdated is not enabled
38-
# - uses: pnpm/action-setup@v3 # Uncomment this block if you're using pnpm
39-
# with:
40-
# version: 9 # Not needed if you've set "packageManager" in package.json
41-
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
42-
- name: Setup Node
43-
uses: actions/setup-node@v4
38+
- name: Install dependencies
39+
uses: borales/actions-yarn@v5
4440
with:
45-
node-version: 22
46-
cache: npm # or pnpm / yarn
41+
cmd: install
4742
- name: Setup Pages
48-
uses: actions/configure-pages@v4
49-
- name: Install dependencies
50-
run: npm ci # or pnpm install / yarn install / bun install
43+
uses: actions/configure-pages@v5
5144
- name: Build with VitePress
52-
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
45+
run: yarn run docs:build
5346
- name: Upload artifact
54-
uses: actions/upload-pages-artifact@v3
47+
uses: actions/upload-pages-artifact@v4
5548
with:
5649
path: docs/.vitepress/dist
5750

0 commit comments

Comments
 (0)