Skip to content
Source
Sign inSign up
TanStack/config
Open History to see the last commit

action.yml

26 lines795 Bytes

1name: Setup Tools
2description: Action that sets up Node, pnpm, and caching
3runs:
4 using: composite
5 steps:
6 - name: Setup pnpm
7 uses: pnpm/action-setup@v4.2.0
8 - name: Setup Node
9 uses: actions/setup-node@v5.0.0
10 with:
11 node-version-file: .nvmrc
12 package-manager-cache: false
13 - name: Get pnpm store directory
14 shell: bash
15 run: |
16 echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
17 - name: Setup pnpm cache
18 uses: actions/cache@v4.3.0
19 with:
20 path: ${{ env.STORE_PATH }}
21 key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
22 restore-keys: |
23 ${{ runner.os }}-pnpm-store-
24 - name: Install dependencies
25 shell: bash
26 run: pnpm install --frozen-lockfile