mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
fix(ci): fix ci pipeline cache
This commit is contained in:
parent
0fff8e6f0e
commit
ed40b49cb8
2 changed files with 14 additions and 9 deletions
|
@ -17,8 +17,6 @@ runs:
|
|||
with:
|
||||
path: .turbo
|
||||
key: ${{ inputs.turbo-cache-key }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-turbo-
|
||||
|
||||
- name: Restore node_modules cache
|
||||
uses: actions/cache@v4
|
||||
|
@ -27,8 +25,6 @@ runs:
|
|||
node_modules
|
||||
*/node_modules
|
||||
key: ${{ inputs.node-modules-cache-key }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-modules-
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
|
|
|
@ -12,16 +12,24 @@ inputs:
|
|||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Restore node_modules cache
|
||||
id: node-modules-cache
|
||||
- name: Check if node_modules cache exists
|
||||
id: check-node-modules-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
*/node_modules
|
||||
key: ${{ inputs.node-modules-cache-key }}
|
||||
lookup-only: true
|
||||
|
||||
- name: Restore node_modules cache
|
||||
if: steps.check-node-modules-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
*/node_modules
|
||||
key: ${{ inputs.node-modules-cache-key }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-modules-
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
|
@ -29,12 +37,13 @@ runs:
|
|||
node-version: lts/*
|
||||
|
||||
- name: Setup pnpm
|
||||
if: steps.check-node-modules-cache.outputs.cache-hit != 'true'
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10.11.0
|
||||
run_install: false
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
||||
if: steps.check-node-modules-cache.outputs.cache-hit != 'true'
|
||||
shell: bash
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue