Skip to content

Commit 1a4e663

Browse files
authored
feat(core): update PNPM GH action setup to use v4 and pnpm version 9 (#27664)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Newly generated `ci-workflow` setups should use the latest GH package + v9 PNPM version ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
1 parent 0b99d1d commit 1a4e663

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/nx-cloud/tutorial/github-actions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ jobs:
7373
with:
7474
fetch-depth: 0
7575

76-
- uses: pnpm/action-setup@v2
76+
- uses: pnpm/action-setup@v4
7777
with:
78-
version: 8
78+
version: 9
7979

8080
# This enables task distribution via Nx Cloud
8181
# Run this command as early as possible, before dependencies are installed
@@ -208,9 +208,9 @@ jobs:
208208
with:
209209
fetch-depth: 0
210210
211-
- uses: pnpm/action-setup@v2
211+
- uses: pnpm/action-setup@v4
212212
with:
213-
version: 8
213+
version: 9
214214
215215
# This enables task distribution via Nx Cloud
216216
# Run this command as early as possible, before dependencies are installed

packages/workspace/src/generators/ci-workflow/__snapshots__/ci-workflow.spec.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ jobs:
916916
917917
- uses: pnpm/action-setup@v4
918918
with:
919-
version: 8
919+
version: 9
920920
921921
# This enables task distribution via Nx Cloud
922922
# Run this command as early as possible, before dependencies are installed
@@ -962,7 +962,7 @@ jobs:
962962
963963
- uses: pnpm/action-setup@v4
964964
with:
965-
version: 8
965+
version: 9
966966
967967
# This enables task distribution via Nx Cloud
968968
# Run this command as early as possible, before dependencies are installed
@@ -2208,7 +2208,7 @@ jobs:
22082208
22092209
- uses: pnpm/action-setup@v4
22102210
with:
2211-
version: 8
2211+
version: 9
22122212
22132213
# This enables task distribution via Nx Cloud
22142214
# Run this command as early as possible, before dependencies are installed
@@ -2255,7 +2255,7 @@ jobs:
22552255
22562256
- uses: pnpm/action-setup@v4
22572257
with:
2258-
version: 8
2258+
version: 9
22592259
22602260
# This enables task distribution via Nx Cloud
22612261
# Run this command as early as possible, before dependencies are installed

packages/workspace/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
<% if(packageManager == 'pnpm'){ %>
2121
- uses: pnpm/action-setup@v4
2222
with:
23-
version: 8
23+
version: 9
2424
<% } %>
2525
<% if(packageManager == 'bun'){ %>
2626
- uses: oven-sh/setup-bun@v1

0 commit comments

Comments
 (0)