chore: upgrade pnpm #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
branches: | |
- master | |
workflow_dispatch: | |
env: | |
BUILD_PATH: "." | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v5 | |
with: | |
node-version: 22 | |
registry-url: https://registry.npmjs.org | |
cache: pnpm | |
cache-dependency-path: ${{ env.BUILD_PATH }}/pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
working-directory: ${{ env.BUILD_PATH }} | |
- name: Check with ESLint and Prettier | |
run: | | |
pnpm check | |
- name: Check with Astro | |
run: | | |
pnpm astro check |