Skip to content

Commit 586deee

Browse files
committed
ci: skip postinstall in check-only jobs with setup-vp
Add run-install: false and manual vp install --filter . --ignore-scripts for lint, i18n, and tag jobs to match original behavior and avoid running heavy postinstall tasks (generate:lexicons, generate:sprite, nuxt prepare) in jobs that don't need them.
1 parent a430d7a commit 586deee

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
with:
3333
node-version: lts/*
3434
cache: true
35+
run-install: false
36+
37+
- name: πŸ“¦ Install dependencies (root only, no scripts)
38+
run: vp install --filter . --ignore-scripts
3539

3640
- name: πŸ”  Lint project
3741
run: vp run lint
@@ -174,6 +178,10 @@ jobs:
174178
with:
175179
node-version: lts/*
176180
cache: true
181+
run-install: false
182+
183+
- name: πŸ“¦ Install dependencies (root only, no scripts)
184+
run: vp install --filter . --ignore-scripts
177185

178186
- name: 🌐 Check for missing or dynamic i18n keys
179187
run: vp run i18n:report

β€Ž.github/workflows/release-tag.ymlβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
with:
2828
node-version: lts/*
2929
cache: true
30+
run-install: false
31+
32+
- name: πŸ“¦ Install dependencies (root only, no scripts)
33+
run: vp install --filter . --ignore-scripts
3034

3135
- name: πŸ”’ Determine next version
3236
id: version

0 commit comments

Comments
Β (0)