forked from GetStream/stream-chat-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (25 loc) · 728 Bytes
/
action.yml
File metadata and controls
30 lines (25 loc) · 728 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
name: Setup
description: Sets up Node and installs dependencies
inputs:
node-version:
description: 'Specify Node version'
required: false
default: '22'
runs:
using: 'composite'
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Set NODE_VERSION env
shell: bash
run: echo "NODE_VERSION=$(node --version)" >> $GITHUB_ENV
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('./yarn.lock') }}
- name: Install dependencies
run: yarn install --frozen-lockfile
shell: bash