File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,21 @@ runs:
32
32
bundler-cache : true
33
33
working-directory : ${{ github.action_path }}
34
34
35
+ # We need to copy md2pdfup's package-lock.json into the workspace
36
+ # because hashFiles only works on files inside the workspace.
37
+ - run : cp ${{ github.action_path }}/package-lock.json md2pdfup-package-lock.json
38
+ shell : bash
39
+
35
40
- uses : actions/setup-node@v4
36
41
with :
37
42
node-version : " 20.x"
38
43
cache : " npm"
39
- cache-dependency-path : " ${{ github.action_path }}/package-lock.json"
44
+ cache-dependency-path : ' **/md2pdfup-package-lock.json'
45
+
46
+ - uses : actions/cache@v4
47
+ with :
48
+ path : ${{ github.action_path }}/node_modules
49
+ key : md2pdfup-npm-${{ hashFiles('md2pdfup-package-lock.json') }}
40
50
41
51
- run : |
42
52
npm install
You can’t perform that action at this time.
0 commit comments