Skip to content

chore: use corepack instead of insalling pnpm from npm #99

chore: use corepack instead of insalling pnpm from npm

chore: use corepack instead of insalling pnpm from npm #99

Workflow file for this run

name: "CI"
on:
push:
branches:
- "main"
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
test-dev-setup:
timeout-minutes: 15
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest ]
node_version: [21]
name: "runner (dev setup): node-${{ matrix.node_version }}, ${{ matrix.os }}"
steps:
- name: Get job name
run: |
echo "Job name is $GITHUB_JOB"
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 21
- name: install pnpm
run: npm i pnpm@latest -g
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: ls
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
tree -L 3
elif [ "$RUNNER_OS" == "Windows" ]; then
dir -la . || exit 0
elif [ "$RUNNER_OS" == "macOS" ]; then
ls -la
fi
shell: bash
- name: Run CI
run: pnpm run ci