Skip to content

Commit f4f4135

Browse files
committed
Align CI install order with Vite Task cache docs
1 parent e5405b6 commit f4f4135

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v6
2020

21-
# setup-vp installs the Vite+ CLI, Node, the package manager, and runs
22-
# `vp install` (run-install defaults to true), caching the dep store.
23-
# See https://viteplus.dev/guide/ci
21+
# setup-vp installs the Vite+ CLI, Node, the package manager, and caches
22+
# the dep store. Run install explicitly before restoring the Vite Task
23+
# cache, matching https://viteplus.dev/guide/github-actions-cache.
2424
- uses: voidzero-dev/setup-vp@v1
2525
with:
2626
node-version-file: .node-version
2727
cache: true
28+
run-install: false
29+
30+
- run: vp install
2831

2932
- name: Restore Vite Task cache
3033
id: vite-task-cache

.github/workflows/storybook.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
with:
3131
node-version-file: .node-version
3232
cache: true
33+
run-install: false
34+
35+
- run: vp install
3336

3437
- name: Restore Vite Task cache
3538
id: vite-task-cache

0 commit comments

Comments
 (0)