Skip to content

encapsulate setups

encapsulate setups #1

Workflow file for this run

name: Checkout & Setup Node & Install pnpm & Add node-gyp & Install
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: 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@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ matrix.node }}-${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ matrix.node }}-${{ runner.os }}-pnpm-store-
- name: Add node-gyp
run: pnpm add -g node-gyp
- name: Install dependencies
run: pnpm i --ignore-scripts