File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,15 @@ jobs:
4141 run : node build/azure-pipelines/common/computeNodeModulesCacheKey.ts darwin $VSCODE_ARCH $(node -p process.arch) > .build/packagelockhash
4242
4343 - name : Print contents of .build/packagelockhash (debug)
44- run : cat .build/packagelockhash
45-
46- - name : Print outcome of hashFiles (debug)
44+ id : prepare-cache-key
4745 run : |
48- echo "Computed hash:"
49- echo "${{ hashFiles('.build/packagelockhash*') }}"
46+ cat .build/packagelockhash
47+ echo "node_modules_cache_key=$(cat .build/packagelockhash)" >> $GITHUB_OUTPUT
48+
49+ # - name: Print outcome of hashFiles (debug)
50+ # run: |
51+ # echo "Computed hash:"
52+ # echo "${{ hashFiles('.build/packagelockhash*') }}"
5053
5154 # - name: Prepare node_modules cache key
5255 # run: mkdir -p .build && node build/azure-pipelines/common/computeNodeModulesCacheKey.ts darwin $VSCODE_ARCH $(node -p process.arch) > .build/packagelockhash
5659 uses : actions/cache/restore@v4
5760 with :
5861 path : .build/node_modules_cache
59- key : " node_modules-macos-${{ hashFiles('.build/packagelockhash*') }}"
62+ key : " node_modules-macos-${{ steps.prepare-cache-key.outputs.node_modules_cache_key }}"
6063
6164 - name : Extract node_modules cache
6265 if : steps.cache-node-modules.outputs.cache-hit == 'true'
You can’t perform that action at this time.
0 commit comments