diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 8191085..f1da58c 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -20,10 +20,12 @@ jobs: with: token: ${{ steps.app-token.outputs.token }} + - uses: pnpm/action-setup@v4 + - name: Bump patch version run: | - npm version patch --no-git-tag-version - git add package.json package-lock.json + pnpm version patch --no-git-tag-version + git add package.json git diff --cached --quiet && exit 0 git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e11c2f4..19fc7c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,17 +9,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: node-version: 20 - cache: npm - - run: npm ci + cache: pnpm + - run: pnpm install --frozen-lockfile - name: Format check - run: npm run format:check + run: pnpm run format:check - name: Typecheck - run: npx tsc --noEmit + run: pnpm exec tsc --noEmit - name: Tests - run: npx vitest run + run: pnpm exec vitest run diff --git a/.husky/pre-commit b/.husky/pre-commit index 73c726d..799cd8f 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npm run format:fix +pnpm run format:fix