File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,28 @@ jobs:
1111 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1212 with :
1313 ref : main
14+ - name : Get main commit SHA
15+ id : main-sha
16+ run : echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
17+ - name : Check cache for main build
18+ id : cache-main
19+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
20+ with :
21+ path : ' *.tgz'
22+ key : main-build-${{ steps.main-sha.outputs.sha }}
1423 - name : Use Node
24+ if : steps.cache-main.outputs.cache-hit != 'true'
1525 uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
1626 with :
1727 node-version : 24.x
1828 - name : Install Dependencies
29+ if : steps.cache-main.outputs.cache-hit != 'true'
1930 run : npm ci --ignore-scripts
2031 - name : Build
32+ if : steps.cache-main.outputs.cache-hit != 'true'
2133 run : npm run build
2234 - name : Pack
35+ if : steps.cache-main.outputs.cache-hit != 'true'
2336 run : npm pack
2437 - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2538 with :
Original file line number Diff line number Diff line change 1- # @ e18e/action-dependency-diff
1+ # e18e/action-dependency-diff
22
33> A GitHub action for reporting differences in dependencies between two branches or commits.
44
You can’t perform that action at this time.
0 commit comments