mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
chore: enhance ci pipeline
This commit is contained in:
@@ -22,6 +22,10 @@ inputs:
|
||||
description: Path(s) used to generate the cache key.
|
||||
required: false
|
||||
default: "pnpm-lock.yaml"
|
||||
prefetch:
|
||||
description: Whether to run pnpm fetch before installation.
|
||||
required: false
|
||||
default: "false"
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -54,6 +58,11 @@ runs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-${{ inputs.pnpm-version }}-store-
|
||||
|
||||
- name: Prefetch dependencies
|
||||
if: ${{ inputs.prefetch == 'true' }}
|
||||
shell: bash
|
||||
run: pnpm fetch --frozen-lockfile
|
||||
|
||||
- name: Install dependencies
|
||||
if: ${{ inputs.install == 'true' }}
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user