mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 09:20:00 +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:
|
with:
|
||||||
path: .turbo
|
path: .turbo
|
||||||
key: ${{ inputs.turbo-cache-key }}
|
key: ${{ inputs.turbo-cache-key }}
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-turbo-
|
|
||||||
|
|
||||||
- name: Restore node_modules cache
|
- name: Restore node_modules cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
@ -27,8 +25,6 @@ runs:
|
||||||
node_modules
|
node_modules
|
||||||
*/node_modules
|
*/node_modules
|
||||||
key: ${{ inputs.node-modules-cache-key }}
|
key: ${{ inputs.node-modules-cache-key }}
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-node-modules-
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
|
|
@ -12,16 +12,24 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Restore node_modules cache
|
- name: Check if node_modules cache exists
|
||||||
id: node-modules-cache
|
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
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
node_modules
|
node_modules
|
||||||
*/node_modules
|
*/node_modules
|
||||||
key: ${{ inputs.node-modules-cache-key }}
|
key: ${{ inputs.node-modules-cache-key }}
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-node-modules-
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
@ -29,12 +37,13 @@ runs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
|
if: steps.check-node-modules-cache.outputs.cache-hit != 'true'
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 10.11.0
|
version: 10.11.0
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
if: steps.check-node-modules-cache.outputs.cache-hit != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue