From e375763c8cbe6dad074f85c9a04a9374b841904c Mon Sep 17 00:00:00 2001 From: Juri Date: Wed, 28 Aug 2024 10:47:52 +0200 Subject: [PATCH] feat(core): update PNPM GH action setup to use v4 and pnpm version 9 --- 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