Skip to content

Commit

Permalink
ci: upgrade pnpm setup to v4 (#11962)
Browse files Browse the repository at this point in the history
* ci: upgrade pnpm setup to v4

* ci: update

* Revert "ci: update"

This reverts commit 049b707.

* ci: update
  • Loading branch information
wenytang-ms authored Jul 5, 2024
1 parent 5f942b3 commit 1a5745c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 36 deletions.
4 changes: 1 addition & 3 deletions .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ runs:
with:
node-version: 18

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

- name: Setup project
if: ${{ inputs.setup == 'true' }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ jobs:
with:
node-version: 18

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

- name: Install wine64
run: |
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ jobs:
python3 --version
pip3 --version
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

- name: Setup project
run: |
Expand Down Expand Up @@ -512,9 +510,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

- name: mv files
working-directory: packages/tests
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/env-checker-ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ jobs:
with:
node-version: 18

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

# https://github.com/marketplace/actions/retry-step
- name: Setup project with Retry
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/env-checker-ci-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ jobs:
with:
node-version: 18

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

# https://github.com/marketplace/actions/retry-step
- name: Setup project with Retry
Expand Down Expand Up @@ -106,9 +104,7 @@ jobs:
with:
node-version: 18

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

# https://github.com/marketplace/actions/retry-step
- name: Setup project with Retry
Expand Down Expand Up @@ -187,9 +183,7 @@ jobs:
with:
node-version: 18

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

# https://github.com/marketplace/actions/retry-step
- name: Setup project with Retry
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/rerun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ jobs:
with:
node-version: 18

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

- name: Setup project
working-directory: ./
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/templates-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
with:
node-version: 18

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

- name: Setup project
run: |
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ui-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ jobs:
with:
node-version: 18

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4

- name: create pvt file (random platform/node)
if: ${{ github.event.schedule == '0 18 * * *' }} || ${{ github.event.inputs.test-case }} == ''
Expand Down Expand Up @@ -539,9 +537,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: pnpm/action-setup@v4
- name: setup project
run: |
pnpm --filter=@microsoft/teamsfx-test install
Expand Down

0 comments on commit 1a5745c

Please sign in to comment.