-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathaction.yml
More file actions
26 lines (26 loc) · 855 Bytes
/
Copy pathaction.yml
File metadata and controls
26 lines (26 loc) · 855 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
name: Setup Tools
description: Action that sets up Node, pnpm, and caching
runs:
using: composite
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v4.4.0
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .nvmrc
package-manager-cache: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
# - name: Setup pnpm cache
# uses: actions/cache@v5.0.4
# with:
# path: ${{ env.STORE_PATH }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}-v2
# restore-keys: |
# ${{ runner.os }}-pnpm-store-
- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile