mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
ci: only dedupe dependencies if they affect bundle size (#23736)
This commit is contained in:
parent
271349d7f0
commit
633ef85dd9
15
.github/workflows/autofix.yml
vendored
15
.github/workflows/autofix.yml
vendored
@ -23,10 +23,6 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Dedupe dependencies
|
||||
if: ${{ contains(github.head_ref, 'renovate') }}
|
||||
run: pnpm dedupe
|
||||
|
||||
- name: Build (stub)
|
||||
run: pnpm build:stub
|
||||
|
||||
@ -39,7 +35,18 @@ jobs:
|
||||
- name: Run build
|
||||
run: pnpm build
|
||||
|
||||
- name: Assert bundle size (renovate)
|
||||
if: ${{ contains(github.head_ref, 'renovate') }}
|
||||
run: pnpm vitest run bundle
|
||||
|
||||
- name: Update bundle size (renovate)
|
||||
if: failure()
|
||||
run: |
|
||||
pnpm vitest run bundle -u
|
||||
pnpm dedupe
|
||||
|
||||
- name: Update bundle size
|
||||
if: ${{ !contains(github.head_ref, 'renovate') }}
|
||||
run: pnpm vitest run bundle -u
|
||||
|
||||
- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
|
||||
|
Loading…
Reference in New Issue
Block a user