From ef4b7f9dd52a8253db0df638bf7bbb52b77ef5a0 Mon Sep 17 00:00:00 2001 From: Juri Strumpflohner Date: Mon, 9 Sep 2024 10:30:49 +0200 Subject: [PATCH] feat(core): update PNPM GH action setup to use v4 and pnpm version 9 (#27664) ## Current Behavior ## Expected Behavior Newly generated `ci-workflow` setups should use the latest GH package + v9 PNPM version ## Related Issue(s) Fixes # (cherry picked from commit 1a4e663c5fad6db4ced9f53fda3e778a915a9d95) --- docs/nx-cloud/tutorial/github-actions.md | 8 ++++---- .../ci-workflow/__snapshots__/ci-workflow.spec.ts.snap | 8 ++++---- .../.github/workflows/__workflowFileName__.yml__tmpl__ | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/nx-cloud/tutorial/github-actions.md b/docs/nx-cloud/tutorial/github-actions.md index 5a02a2c0ccb80..7cada2521a5b5 100644 --- a/docs/nx-cloud/tutorial/github-actions.md +++ b/docs/nx-cloud/tutorial/github-actions.md @@ -73,9 +73,9 @@ jobs: with: fetch-depth: 0 - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9 # This enables task distribution via Nx Cloud # Run this command as early as possible, before dependencies are installed @@ -208,9 +208,9 @@ jobs: with: fetch-depth: 0 - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9 # This enables task distribution via Nx Cloud # Run this command as early as possible, before dependencies are installed diff --git a/packages/workspace/src/generators/ci-workflow/__snapshots__/ci-workflow.spec.ts.snap b/packages/workspace/src/generators/ci-workflow/__snapshots__/ci-workflow.spec.ts.snap index 0f11982f8acf0..c997a1c33a9e9 100644 --- a/packages/workspace/src/generators/ci-workflow/__snapshots__/ci-workflow.spec.ts.snap +++ b/packages/workspace/src/generators/ci-workflow/__snapshots__/ci-workflow.spec.ts.snap @@ -916,7 +916,7 @@ jobs: - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9 # This enables task distribution via Nx Cloud # Run this command as early as possible, before dependencies are installed @@ -962,7 +962,7 @@ jobs: - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9 # This enables task distribution via Nx Cloud # Run this command as early as possible, before dependencies are installed @@ -2208,7 +2208,7 @@ jobs: - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9 # This enables task distribution via Nx Cloud # Run this command as early as possible, before dependencies are installed @@ -2255,7 +2255,7 @@ jobs: - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9 # This enables task distribution via Nx Cloud # Run this command as early as possible, before dependencies are installed diff --git a/packages/workspace/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ b/packages/workspace/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ index 77226ab4a0ea0..15856e1733e52 100644 --- a/packages/workspace/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ +++ b/packages/workspace/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ @@ -20,7 +20,7 @@ jobs: <% if(packageManager == 'pnpm'){ %> - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9 <% } %> <% if(packageManager == 'bun'){ %> - uses: oven-sh/setup-bun@v1