-
Notifications
You must be signed in to change notification settings - Fork 553
/
action.yml
41 lines (38 loc) · 1.32 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
name: "Install Dependencies"
description: "Install dependencies, fetching from cache when possible"
inputs:
node-version:
description: the version of Node.js to install
default: 18.20.2
turbo-api:
description: the api URL for connecting to the turbo remote cache
turbo-team:
description: the team identifier for connecting to the turbo remote cache
turbo-token:
description: the api token for connecting to the turbo remote cache
turbo-signature:
description: the cache signature key for connecting to the turbo remote cache
runs:
using: "composite"
steps:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9.1.3
- name: Install Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
cache: "pnpm"
- name: "Configure turbo repo cache environment variables"
if: inputs.turbo-api
shell: bash
run: |
touch .env
echo TURBO_API=${{ inputs.turbo-api }} >> .env
echo TURBO_TEAM=${{ inputs.turbo-team }} >> .env
echo TURBO_TOKEN=${{ inputs.turbo-token }} >> .env
echo TURBO_REMOTE_CACHE_SIGNATURE_KEY=${{ inputs.turbo-signature }} >> .env
- name: Install NPM Dependencies
shell: bash
run: pnpm install --frozen-lockfile