Skip to content

⬆️(deps): Bump actions/cache from 4 to 5 #96

⬆️(deps): Bump actions/cache from 4 to 5

⬆️(deps): Bump actions/cache from 4 to 5 #96

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Run ESLint
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout repository
uses: actions/checkout@v5
# Step 2: Set up Node.js and pnpm
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v5
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# Step 3: Install dependencies
- name: Install dependencies
run: pnpm install
# Step 4: Run ESLint
- name: Run ESLint
run: pnpm run lint