Skip to content

Commit 35c2582

Browse files
committed
Add local setup action for Node.js and pnpm
1 parent 9bb7883 commit 35c2582

2 files changed

Lines changed: 25 additions & 70 deletions

File tree

.github/actions/setup-pnpm/action.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/actions/setup/action.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Setup'
2+
description: 'Setup Node.js and PNPM for Socket CLI'
3+
4+
inputs:
5+
node-version:
6+
description: 'Node.js version'
7+
required: false
8+
default: '22'
9+
10+
runs:
11+
using: 'composite'
12+
steps:
13+
- name: Setup Node.js
14+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
15+
with:
16+
node-version: ${{ inputs.node-version }}
17+
18+
- name: Setup PNPM
19+
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
20+
with:
21+
version: '^10.16.0'
22+
23+
- name: Install dependencies
24+
shell: bash
25+
run: pnpm install

0 commit comments

Comments
 (0)