-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
65 lines (59 loc) · 1.89 KB
/
action.yml
File metadata and controls
65 lines (59 loc) · 1.89 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Setup Node + pnpm
description: Setup pnpm, Node.js, pnpm store cache, and install workspace dependencies
inputs:
node-version:
description: Node.js version
required: false
default: "25.6.1"
pnpm-version:
description: pnpm version
required: false
default: "10.33.0"
registry-url:
description: Optional npm registry URL to configure for npm publish/auth steps
required: false
default: ""
cache:
description: Whether to enable actions/setup-node pnpm cache
required: false
default: "true"
install:
description: Whether to run pnpm install
required: false
default: "true"
install-filter:
description: Optional pnpm filter selector to limit install scope
required: false
default: ""
runs:
using: composite
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v5
with:
version: ${{ inputs.pnpm-version }}
- name: Setup Node with pnpm cache
if: inputs.cache == 'true'
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node-version }}
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
registry-url: ${{ inputs.registry-url }}
- name: Setup Node without pnpm cache
if: inputs.cache != 'true'
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node-version }}
package-manager-cache: false
registry-url: ${{ inputs.registry-url }}
- name: Install workspace dependencies
if: inputs.install == 'true' && inputs['install-filter'] == ''
shell: bash
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Install filtered workspace dependencies
if: inputs.install == 'true' && inputs['install-filter'] != ''
shell: bash
run: pnpm install --frozen-lockfile --ignore-scripts --filter "$INSTALL_FILTER"
env:
INSTALL_FILTER: ${{ inputs['install-filter'] }}