43
43
node_version : ${{ steps.retrieve-node-version.outputs.node_version }}
44
44
steps :
45
45
- name : Checkout repo
46
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
46
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
47
47
48
48
- name : Get Package Version
49
49
id : retrieve-package-version
84
84
_WIN_PKG_VERSION : 3.5
85
85
steps :
86
86
- name : Checkout repo
87
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
87
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
88
88
89
89
- name : Setup Unix Vars
90
90
run : |
93
93
awk '{print tolower($0)}')" >> $GITHUB_ENV
94
94
95
95
- name : Set up Node
96
- uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
96
+ uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
97
97
with :
98
98
cache : ' npm'
99
99
cache-dependency-path : ' **/package-lock.json'
@@ -130,14 +130,14 @@ jobs:
130
130
matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-sha256-${{ env._PACKAGE_VERSION }}.txt
131
131
132
132
- name : Upload unix zip asset
133
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
133
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
134
134
with :
135
135
name : bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-${{ env._PACKAGE_VERSION }}.zip
136
136
path : apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-${{ env._PACKAGE_VERSION }}.zip
137
137
if-no-files-found : error
138
138
139
139
- name : Upload unix checksum asset
140
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
140
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
141
141
with :
142
142
name : bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-sha256-${{ env._PACKAGE_VERSION }}.txt
143
143
path : apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-sha256-${{ env._PACKAGE_VERSION }}.txt
@@ -162,7 +162,7 @@ jobs:
162
162
_WIN_PKG_VERSION : 3.5
163
163
steps :
164
164
- name : Checkout repo
165
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
165
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
166
166
167
167
- name : Setup Windows builder
168
168
run : |
@@ -171,7 +171,7 @@ jobs:
171
171
choco install nasm --no-progress
172
172
173
173
- name : Set up Node
174
- uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
174
+ uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
175
175
with :
176
176
cache : ' npm'
177
177
cache-dependency-path : ' **/package-lock.json'
@@ -269,33 +269,36 @@ jobs:
269
269
-t sha256 | Out-File -Encoding ASCII ./dist/bw${{ matrix.license_type.artifact_prefix }}-windows-sha256-${env:_PACKAGE_VERSION}.txt
270
270
271
271
- name : Upload windows zip asset
272
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
272
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
273
273
with :
274
274
name : bw${{ matrix.license_type.artifact_prefix }}-windows-${{ env._PACKAGE_VERSION }}.zip
275
275
path : apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-windows-${{ env._PACKAGE_VERSION }}.zip
276
276
if-no-files-found : error
277
277
278
278
- name : Upload windows checksum asset
279
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
279
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
280
280
with :
281
281
name : bw${{ matrix.license_type.artifact_prefix }}-windows-sha256-${{ env._PACKAGE_VERSION }}.txt
282
282
path : apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-windows-sha256-${{ env._PACKAGE_VERSION }}.txt
283
283
if-no-files-found : error
284
284
285
285
- name : Upload Chocolatey asset
286
286
if : matrix.license_type.build_prefix == 'bit'
287
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
287
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
288
288
with :
289
289
name : bitwarden-cli.${{ env._PACKAGE_VERSION }}.nupkg
290
290
path : apps/cli/dist/chocolatey/bitwarden-cli.${{ env._PACKAGE_VERSION }}.nupkg
291
291
if-no-files-found : error
292
+
293
+ - name : Zip NPM Build Artifact
294
+ run : Get-ChildItem -Path .\build | Compress-Archive -DestinationPath .\bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip
292
295
293
296
- name : Upload NPM Build Directory asset
294
297
if : matrix.license_type.build_prefix == 'bit'
295
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
298
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
296
299
with :
297
300
name : bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip
298
- path : apps/cli/build
301
+ path : apps/cli/bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm- build.zip
299
302
if-no-files-found : error
300
303
301
304
snap :
@@ -309,7 +312,7 @@ jobs:
309
312
_PACKAGE_VERSION : ${{ needs.setup.outputs.package_version }}
310
313
steps :
311
314
- name : Checkout repo
312
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
315
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
313
316
314
317
- name : Print environment
315
318
run : |
@@ -319,7 +322,7 @@ jobs:
319
322
echo "BW Package Version: $_PACKAGE_VERSION"
320
323
321
324
- name : Get bw linux cli
322
- uses : actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
325
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
323
326
with :
324
327
name : bw-linux-${{ env._PACKAGE_VERSION }}.zip
325
328
path : apps/cli/dist/snap
@@ -332,7 +335,7 @@ jobs:
332
335
ls -alth
333
336
334
337
- name : Build snap
335
- uses : snapcore/action-build@2096990827aa966f773676c8a53793c723b6b40f # v1.2 .0
338
+ uses : snapcore/action-build@3bdaa03e1ba6bf59a65f84a751d943d549a54e79 # v1.3 .0
336
339
with :
337
340
path : apps/cli/dist/snap
338
341
@@ -361,14 +364,14 @@ jobs:
361
364
run : sudo snap remove bw
362
365
363
366
- name : Upload snap asset
364
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
367
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
365
368
with :
366
369
name : bw_${{ env._PACKAGE_VERSION }}_amd64.snap
367
370
path : apps/cli/dist/snap/bw_${{ env._PACKAGE_VERSION }}_amd64.snap
368
371
if-no-files-found : error
369
372
370
373
- name : Upload snap checksum asset
371
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
374
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
372
375
with :
373
376
name : bw-snap-sha256-${{ env._PACKAGE_VERSION }}.txt
374
377
path : apps/cli/dist/snap/bw-snap-sha256-${{ env._PACKAGE_VERSION }}.txt
@@ -405,7 +408,7 @@ jobs:
405
408
secrets : " devops-alerts-slack-webhook-url"
406
409
407
410
- name : Notify Slack on failure
408
- uses : act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0 .0
411
+ uses : act10ns/slack@44541246747a30eb3102d87f7a4cc5471b0ffb7d # v2.1 .0
409
412
if : failure()
410
413
env :
411
414
SLACK_WEBHOOK_URL : ${{ steps.retrieve-secrets.outputs.devops-alerts-slack-webhook-url }}
0 commit comments