Skip to content

Commit 23f37bf

Browse files
authored
chore: update github actions (#2520)
1 parent ea623c3 commit 23f37bf

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

Diff for: .github/workflows/ci.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Check out Git repository
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2525

2626
- name: Install Node.js
2727
uses: actions/setup-node@v3
@@ -84,7 +84,7 @@ jobs:
8484

8585
steps:
8686
- name: Check out Git repository
87-
uses: actions/checkout@v2
87+
uses: actions/checkout@v3
8888

8989
- name: Install Node.js
9090
uses: actions/setup-node@v3
@@ -133,7 +133,7 @@ jobs:
133133
run: npm run test
134134

135135
- name: Test end-to-end
136-
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d # v1.6
136+
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1
137137
with:
138138
working-directory: ${{ github.workspace }}
139139
run: npm run test:e2e
@@ -151,7 +151,7 @@ jobs:
151151

152152
steps:
153153
- name: Check out Git repository
154-
uses: actions/checkout@v2
154+
uses: actions/checkout@v3
155155

156156
- name: Install Node.js
157157
uses: actions/setup-node@v3
@@ -194,12 +194,18 @@ jobs:
194194

195195
- name: Get tag
196196
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
198202
continue-on-error: true # empty steps.tag.outputs.tag will inform the next step
199203

200204
- 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
202206
with:
207+
package_manager: npm
208+
skip_package_manager_install: true
203209
args: --publish onTag # attach signed binaries to a release draft only when building a tag
204210
release: false # keep github release as draft for manual inspection
205211
max_attempts: 2
@@ -236,4 +242,3 @@ jobs:
236242

237243
- name: Show Cache
238244
run: du -sh ${{ github.workspace }}/.cache/ && ls -l ${{ github.workspace }}/.cache/
239-

0 commit comments

Comments
 (0)