Skip to content

fix: eslint

fix: eslint #36

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Volta
run: |
curl https://get.volta.sh | bash
echo "$HOME/.volta/bin" >> $GITHUB_PATH
- name: Install Node.js with Volta
run: volta install node
- name: Set PNPM version
run: |
echo "PNPM_VERSION=$(jq -r '.packageManager' package.json | awk -F'@' '{print $2}')" >> $GITHUB_ENV
- name: Install pnpm using Volta
run: volta install pnpm@${{ env.PNPM_VERSION }}
- name: Get pnpm store directory
run: |
PNPM_STORE_PATH=$(pnpm store path --silent)
echo "PNPM_STORE_PATH=$PNPM_STORE_PATH" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.PNPM_STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile --strict-peer-dependencies
- name: Build
run: pnpm build