From 42d4d675c3a8498ee5a96cdafc4373f53d93b697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Jakub=20Nani=C5=A1ta?= Date: Tue, 6 Feb 2024 13:41:33 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B2=20Revert=20pipeline=20updates=20(#?= =?UTF-8?q?348)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/actions/setup-environment/action.yaml | 8 +++++--- .husky/pre-commit | 2 +- package.json | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/actions/setup-environment/action.yaml b/.github/workflows/actions/setup-environment/action.yaml index a829fc9ca..08f2e9a3a 100644 --- a/.github/workflows/actions/setup-environment/action.yaml +++ b/.github/workflows/actions/setup-environment/action.yaml @@ -3,9 +3,11 @@ description: Setup node & package manager, checkout code runs: using: "composite" steps: - - name: Enable corepack - shell: bash - run: corepack enable + - uses: pnpm/action-setup@v2 + name: Install pnpm + with: + version: 8 + run_install: false - name: Setup Node.js uses: actions/setup-node@v4 diff --git a/.husky/pre-commit b/.husky/pre-commit index d24fdfc60..a5a29d9f7 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -npx lint-staged +pnpm lint-staged diff --git a/package.json b/package.json index 94d8223dc..dfc26632f 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ }, "lint-staged": { "**/*": [ - "npx prettier --write --ignore-unknown", - "npx eslint --fix" + "pnpm prettier --write --ignore-unknown", + "pnpm eslint --fix" ] }, "resolutions": {