This repository was archived by the owner on Apr 13, 2025. It is now read-only.
File tree 1 file changed +16
-4
lines changed 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -79,16 +79,28 @@ jobs:
79
79
run : echo "NODECG_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
80
80
81
81
- name : Cache NodeCG dependencies
82
- id : cache-nodecg
82
+ id : cache-nodecg-deps
83
83
uses : actions/cache@v3
84
84
with :
85
85
path : ' node_modules'
86
- key : ${{ runner.os }}-${{ env.NODECG_HASH }}-nodecg
86
+ key : ${{ runner.os }}-${{ env.NODECG_HASH }}-nodecg-deps
87
+
88
+ - name : Cache NodeCG compilation outputs
89
+ id : cache-nodecg-build
90
+ uses : actions/cache@v3
91
+ with :
92
+ path : ' build'
93
+ key : ${{ runner.os }}-${{ env.NODECG_HASH }}-nodecg-build
87
94
88
95
- name : Install NodeCG dependencies
89
96
# Only get dependencies if we didn't get them from the cache
90
- if : steps.cache-nodecg.outputs.cache-hit != 'true'
91
- run : npm install --prod
97
+ if : steps.cache-nodecg-deps.outputs.cache-hit != 'true'
98
+ run : npm install
99
+
100
+ - name : Build NodeCG
101
+ # Only build NodeCG if we didn't have cached compilation results
102
+ if : steps.cache-nodecg-build.outputs.cache-hit != 'true'
103
+ run : npm run build
92
104
93
105
- name : Setup NodeCG config linux
94
106
if : matrix.os == 'ubuntu-latest'
You can’t perform that action at this time.
0 commit comments