diff --git a/.github/workflows/ng-renovate.yml b/.github/workflows/ng-renovate.yml index a16dc5e77..c747f02b2 100644 --- a/.github/workflows/ng-renovate.yml +++ b/.github/workflows/ng-renovate.yml @@ -32,7 +32,8 @@ 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 + 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 || '' }}