diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a71c26..e44ffae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,7 @@ permissions: contents: read env: - pnpm-version: 10.2.1 - node-version: 23 + PNPM_VERSION: 10.2.1 jobs: ci: @@ -23,11 +22,12 @@ jobs: - uses: pnpm/action-setup@v2 with: - version: ${{ env.pnpm-version }} + version: ${{ env.PNPM_VERSION }} - uses: actions/setup-node@v4 with: - node-version: ${{ env.node-version }} + node-version-file: .nvmrc + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.husky/pre-commit b/.husky/pre-commit index ec320d7..fe469f1 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,3 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - echo "Running pre-commit checks..." # Run lint-staged for code formatting and linting diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..8bbfe39 --- /dev/null +++ b/.nvmrc @@ -0,0 +1,2 @@ +23 +