feat: update lint workflow to use pnpm for dependency management and caching

This commit is contained in:
2025-07-02 20:13:57 +00:00
committed by GitHub
parent 52de9a51f7
commit 1280da6221
2 changed files with 22 additions and 6 deletions

View File

@@ -20,13 +20,28 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: npm ci
run: pnpm install
- name: Run Next.js lint
run: npm run lint
- name: Build application
run: npm run build
run: pnpm lint