File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : setup_node
2
+ description : Setup Node, and install Pnpm
3
+ inputs :
4
+ node-version :
5
+ required : false
6
+ description : The version of Node to use.
7
+ default : ' 22.x'
8
+ runs :
9
+ using : ' composite'
10
+ steps :
11
+ - name : Setup pnpm
12
+ uses : pnpm/action-setup@v4
13
+
14
+ - name : Use Node.js ${{ inputs.node-version }}
15
+ uses : actions/setup-node@v4
16
+ with :
17
+ registry-url : ' https://registry.npmjs.org'
18
+ node-version : ${{ inputs.node-version }}
19
+ cache : ' pnpm'
20
+
21
+ - name : Enable Corepack
22
+ run : |
23
+ npm i -g --force corepack
24
+ corepack enable
25
+ corepack install
26
+ shell : bash
Original file line number Diff line number Diff line change 1
1
name : setup_node
2
- description : Setup Node, and install Pnpm
2
+ description : Setup Node, install Pnpm, and install dependencies.
3
3
inputs :
4
4
node-version :
5
5
required : false
20
20
21
21
- name : Enable Corepack
22
22
run : |
23
+ npm i -g --force corepack
23
24
corepack enable
24
25
corepack install
25
26
shell : bash
You can’t perform that action at this time.
0 commit comments