From 4672802cb82dc5821d74b5f87009c899dbcb6f4e Mon Sep 17 00:00:00 2001 From: shfshanyue Date: Sun, 5 Nov 2023 08:51:29 +0800 Subject: [PATCH 1/2] chore: packagePamanager in package.json for corepack and pnpm/action-setup --- .github/workflows/node-ci.yml | 2 -- .github/workflows/test.yml | 2 -- package.json | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index 4251b97960..48d0a91098 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -15,8 +15,6 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v2.2.4 - with: - version: 7 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 233897b3c3..80f9072a8f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,8 +16,6 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v2.2.4 - with: - version: 7 - name: Get pnpm store directory id: pnpm-cache diff --git a/package.json b/package.json index 4b3b46e5d0..261336378a 100755 --- a/package.json +++ b/package.json @@ -77,5 +77,6 @@ "extends": [ "@commitlint/config-conventional" ] - } + }, + "packageManager": "pnpm@7.33.6" } From 3c379c6c7c5cbf5d3ad85192c8d53677bf428f06 Mon Sep 17 00:00:00 2001 From: liuyib <1656081615@qq.com> Date: Mon, 18 Dec 2023 14:49:21 +0800 Subject: [PATCH 2/2] style: update position --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 261336378a..547825b449 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "ahooks", "private": true, + "packageManager": "pnpm@7.33.6", "repository": { "type": "git", "url": "git+https://github.com/alibaba/hooks.git" @@ -77,6 +78,5 @@ "extends": [ "@commitlint/config-conventional" ] - }, - "packageManager": "pnpm@7.33.6" + } }