@@ -81,23 +81,33 @@ jobs:
81
81
runs-on : ubuntu-latest
82
82
needs : [ test, version-info ]
83
83
if : ${{ needs.version-info.outputs.release == 1 || needs.version-info.outputs.dev == 1 }}
84
- strategy :
85
- matrix :
86
- node-version : [ 18 ]
87
84
steps :
88
85
- name : Checkout
89
86
uses : actions/checkout@v4
90
87
91
- - uses : pnpm/action-setup@v2
88
+ - name : Install Node.js
89
+ uses : actions/setup-node@v4
92
90
with :
93
- version : 8
91
+ node- version : 20
94
92
95
- - name : Use Node.js ${{ matrix.node-version }}
96
- uses : actions/setup-node@v3
93
+ - uses : pnpm/action-setup@v4
94
+ name : Install pnpm
97
95
with :
98
- node-version : ${{ matrix.node-version }}
99
- cache : ' pnpm'
100
- cache-dependency-path : webui/pnpm-lock.yaml
96
+ version : 9
97
+ run_install : false
98
+
99
+ - name : Get pnpm store directory
100
+ shell : bash
101
+ run : |
102
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
103
+
104
+ - uses : actions/cache@v4
105
+ name : Setup pnpm cache
106
+ with :
107
+ path : ${{ env.STORE_PATH }}
108
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
109
+ restore-keys : |
110
+ ${{ runner.os }}-pnpm-store-
101
111
102
112
- name : Install dependencies
103
113
run : cd webui && pnpm install
@@ -247,7 +257,7 @@ jobs:
247
257
run : |
248
258
echo ${{ needs.version-info.outputs.version }}
249
259
echo "VERSION='${{ needs.version-info.outputs.version }}'" >> module/__version__.py
250
-
260
+
251
261
- name : Copy requirements.txt
252
262
working-directory : ./backend
253
263
run :
@@ -267,7 +277,7 @@ jobs:
267
277
echo "version=🌟${{ needs.version-info.outputs.version }}" >> $GITHUB_OUTPUT
268
278
echo "pre_release=false" >> $GITHUB_OUTPUT
269
279
fi
270
-
280
+
271
281
- name : Release
272
282
id : release
273
283
uses : softprops/action-gh-release@v1
0 commit comments