aboutsummaryrefslogtreecommitdiff
path: root/.github/actions/setup-pnpm/action.yml
blob: 61cf3ee42838585fce2a28dd9d6bfa1e28cf76f2 (plain)
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
name: Setup Node.js, pnpm and dependencies
description: Setup Node.js, pnpm and dependencies
inputs:
  token:
    description: Github token
    required: false
    default: ''
runs:
  using: composite
  steps:
    - name: Install pnpm
      uses: pnpm/action-setup@v2
      with:
        version: 8.x.x

    - name: Install Node.js
      uses: actions/setup-node@v3
      with:
        token: ${{ inputs.token }}
        check-latest: true
        node-version-file: .nvmrc

    - name: Install pnpm deps
      shell: ${{ runner.os == 'Windows' && 'powershell' || 'bash' }}
      env:
        NODE_ENV: debug
        GITHUB_TOKEN: ${{ inputs.token }}
      run: pnpm i --frozen-lockfile