-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
49 lines (41 loc) · 1.08 KB
/
action.yml
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
name: 'Install pnpm dependencies'
description: 'Install pnpm dependencies from scratch or from cache'
inputs:
node-version:
description: 'The Node.js version to use'
required: false
pnpm-version:
description: 'The pnpm version to use'
default: '8.15.1'
required: false
pnpm-args:
description: 'Arguments to use with pnpm install. Can be multiline string.'
required: false
runs:
using: composite
steps:
# TODO: REMOVE THIS!
- uses: actions/checkout@v4
- name: 'Enable corepack'
shell: bash
#language=bash
run: |
corepack enable
- uses: myparcelnl/actions/setup-node@v4
with:
cache: 'pnpm'
key: 'pnpm'
node-version: ${{ inputs.node-version }}
- uses: myparcelnl/actions/format-string@v4
id: args
with:
mode: 'args'
string: |
--frozen-lockfile
${{ inputs.pnpm-args }}
- name: 'Install pnpm dependencies'
shell: bash
env:
ARGS: ${{ steps.args.outputs.string }}
#language=bash
run: pnpm install $ARGS