Compare commits
2 Commits
e54d5ef3c2
...
cbbae112dc
| Author | SHA1 | Date | |
|---|---|---|---|
| cbbae112dc | |||
| 7f28f7bf81 |
@ -17,6 +17,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
- name: Cache pnpm store
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.pnpm-store
|
||||||
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-
|
||||||
|
# Nuxt 构建缓存,加快二次构建
|
||||||
|
- name: Cache Nuxt build
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: .nuxt
|
||||||
|
key: ${{ runner.os }}-nuxt-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-nuxt-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Build project
|
- name: Build project
|
||||||
@ -36,6 +52,6 @@ jobs:
|
|||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Download build output
|
- name: Download build output
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: nuxt-output
|
name: nuxt-output
|
||||||
path: .output
|
path: .output
|
||||||
|
|||||||
Reference in New Issue
Block a user