File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,19 @@ jobs:
2222 node-version : ' 22.20.0'
2323 cache : ' npm'
2424
25- - name : Install dependencies
26- run : npm install
25+ - name : Extract version from tag
26+ id : get_version
27+ run : |
28+ VERSION=${GITHUB_REF#refs/tags/v}
29+ echo "version=$VERSION" >> $GITHUB_OUTPUT
30+ echo "Using version: $VERSION"
31+ - name: Install dependencies
32+ run: npm install
2733
2834 - name : Run make using package.json script
2935 run : npm run make
36+ env :
37+ APP_VERSION : ${{ steps.get_version.outputs.VERSION }}
3038
3139 - name : Upload build artifacts
3240 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module.exports = {
66 name : 'BPSR-PSO' ,
77 icon : './resources/ico' ,
88 asar : true ,
9+ version : process . env . APP_VERSION || require ( './package.json' ) . version ,
910 extraResource : [ './resources/npcap-1.83.exe' ] ,
1011 } ,
1112 rebuildConfig : { } ,
You can’t perform that action at this time.
0 commit comments