diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e8df46b30..ff49ab3987 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,14 +16,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install pnpm - run: corepack enable - - - uses: actions/setup-node@v4 + uses: pnpm/action-setup@v4 with: - node-version: '20' - cache: 'pnpm' + version: 9 - name: Install dependencies run: pnpm install @@ -35,9 +31,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install pnpm - run: corepack enable + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: @@ -59,9 +56,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install pnpm - run: corepack enable + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index 12cbfe94e1..a00ae582f2 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -15,7 +15,9 @@ jobs: uses: actions/checkout@v4 - name: Install pnpm - run: corepack enable + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d78ef55af..acc1344650 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,11 +13,11 @@ jobs: contents: write id-token: write steps: - - name: Checkout code - uses: actions/checkout@v4 - + - uses: actions/checkout@v4 - name: Install pnpm - run: corepack enable + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/sync-h5.yml b/.github/workflows/sync-h5.yml index 3b7385dd1c..91abeff726 100644 --- a/.github/workflows/sync-h5.yml +++ b/.github/workflows/sync-h5.yml @@ -16,9 +16,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install pnpm - run: corepack enable + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/sync-pkg.yml b/.github/workflows/sync-pkg.yml index 02e6663edb..71b82513bc 100644 --- a/.github/workflows/sync-pkg.yml +++ b/.github/workflows/sync-pkg.yml @@ -14,9 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install pnpm - run: corepack enable + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/sync-taro.yml b/.github/workflows/sync-taro.yml index 4f02e292b1..05f1ed47c4 100644 --- a/.github/workflows/sync-taro.yml +++ b/.github/workflows/sync-taro.yml @@ -16,9 +16,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install pnpm - run: corepack enable + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: