-
Notifications
You must be signed in to change notification settings - Fork 284
Expand file tree
/
Copy pathaction.yml
More file actions
31 lines (26 loc) · 861 Bytes
/
action.yml
File metadata and controls
31 lines (26 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This is the composite action:
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
name: Setup Node, pnpm and install dependencies
description: Setup pnpm and Node.js with caching
inputs:
run-install:
description: 'Whether to run `pnpm install`'
required: false
default: 'true'
runs:
using: composite
steps:
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
with:
run_install: false
- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: .nvmrc
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
if: ${{ inputs.run-install == 'true' }}
run: pnpm install --frozen-lockfile
shell: bash