21
21
runs-on : ubuntu-latest
22
22
steps :
23
23
- name : Check out Git repository
24
- uses : actions/checkout@v2
24
+ uses : actions/checkout@v3
25
25
26
26
- name : Install Node.js
27
27
uses : actions/setup-node@v3
84
84
85
85
steps :
86
86
- name : Check out Git repository
87
- uses : actions/checkout@v2
87
+ uses : actions/checkout@v3
88
88
89
89
- name : Install Node.js
90
90
uses : actions/setup-node@v3
@@ -133,7 +133,7 @@ jobs:
133
133
run : npm run test
134
134
135
135
- name : Test end-to-end
136
- uses : GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d # v1.6
136
+ uses : coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1
137
137
with :
138
138
working-directory : ${{ github.workspace }}
139
139
run : npm run test:e2e
@@ -151,7 +151,7 @@ jobs:
151
151
152
152
steps :
153
153
- name : Check out Git repository
154
- uses : actions/checkout@v2
154
+ uses : actions/checkout@v3
155
155
156
156
- name : Install Node.js
157
157
uses : actions/setup-node@v3
@@ -194,12 +194,18 @@ jobs:
194
194
195
195
- name : Get tag
196
196
id : tag
197
- uses : dawidd6/action-get-tag@12319896edaa290b27558e34a177804e9b8d077b # v1
197
+ run : |
198
+ if [[ "$GITHUB_REF" == "refs/tags/"* ]]; then
199
+ echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
200
+ fi
201
+ shell : bash
198
202
continue-on-error : true # empty steps.tag.outputs.tag will inform the next step
199
203
200
204
- name : Build binaries with electron-builder
201
- uses : samuelmeuli /action-electron-builder@92327c67bc45ff7c38bf55d8aa8c4d75b7ea38e7 # v1.6.0 but safer than a tag that can be changed
205
+ uses : paneron /action-electron-builder@14b133702d1b2e9749912051c43ed62b4afe56c8 # v1.8.1
202
206
with :
207
+ package_manager : npm
208
+ skip_package_manager_install : true
203
209
args : --publish onTag # attach signed binaries to a release draft only when building a tag
204
210
release : false # keep github release as draft for manual inspection
205
211
max_attempts : 2
@@ -236,4 +242,3 @@ jobs:
236
242
237
243
- name : Show Cache
238
244
run : du -sh ${{ github.workspace }}/.cache/ && ls -l ${{ github.workspace }}/.cache/
239
-
0 commit comments