From 8e31e1da995ef9ddb25c2ed7da3e3e16a3dc4cc5 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Fri, 29 Aug 2025 13:10:39 +0000 Subject: [PATCH 1/2] ci: remove `pnpm/action-setup` set from `ng-renovate` workflow This step is already included in `./github-actions/npm/checkout-and-setup-node` which makes this duplicate. --- .github/workflows/ng-renovate.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ng-renovate.yml b/.github/workflows/ng-renovate.yml index a16dc5e77..fedf1cab1 100644 --- a/.github/workflows/ng-renovate.yml +++ b/.github/workflows/ng-renovate.yml @@ -32,7 +32,6 @@ jobs: # this step. - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ./github-actions/npm/checkout-and-setup-node - - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - run: pnpm install --frozen-lockfile working-directory: ./.github/ng-renovate - run: pnpm exec renovate From 75144f3a3fb4e89a82d1c7a5e2a4831837016a33 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Fri, 29 Aug 2025 13:18:18 +0000 Subject: [PATCH 2/2] feat(github-actions): add cache-dependency-path to checkout-and-setup-node This allows specifying a dependency file path for more accurate caching, aligning with the official `setup-node` action's capabilities. The `ng-renovate` workflow is updated to use this new input. See: https://github.com/actions/setup-node?tab=readme-ov-file#caching-global-packages-data --- .github/workflows/ng-renovate.yml | 2 ++ github-actions/npm/checkout-and-setup-node/action.yml | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/ng-renovate.yml b/.github/workflows/ng-renovate.yml index fedf1cab1..c747f02b2 100644 --- a/.github/workflows/ng-renovate.yml +++ b/.github/workflows/ng-renovate.yml @@ -32,6 +32,8 @@ jobs: # this step. - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ./github-actions/npm/checkout-and-setup-node + with: + cache-dependency-path: './.github/ng-renovate/pnpm-lock.yaml' - run: pnpm install --frozen-lockfile working-directory: ./.github/ng-renovate - run: pnpm exec renovate diff --git a/github-actions/npm/checkout-and-setup-node/action.yml b/github-actions/npm/checkout-and-setup-node/action.yml index d44e94ae1..cb3a195e2 100644 --- a/github-actions/npm/checkout-and-setup-node/action.yml +++ b/github-actions/npm/checkout-and-setup-node/action.yml @@ -21,6 +21,12 @@ inputs: description: 'When set to true, disables the package manager cache.' default: false + cache-dependency-path: + description: | + Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. + Supports wildcards or a list of file names for caching multiple dependencies. + default: '' + runs: using: composite steps: @@ -56,4 +62,5 @@ runs: with: node-version-file: ${{ inputs.node-version-file-path }} node-version: ${{ inputs.node-version }} + cache-dependency-path: ${{ inputs.cache-dependency-path }} cache: ${{ inputs.disable-package-manager-cache != 'true' && steps.packageManager.outputs.CACHE_MANAGER_VALUE || '' }}