Skip to content

Commit aad78d2

Browse files
committed
fix(ci): add --tag latest to all npm publish commands for prerelease versions
1 parent dfa21fe commit aad78d2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/publish-socketbin.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ jobs:
275275
if: ${{ !inputs.dry-run }}
276276
run: |
277277
cd packages/socketbin-cli-linux-x64
278-
npm publish --provenance --access public
278+
npm publish --provenance --access public --tag latest --tag latest
279279
280280
- name: Prepare and publish Linux ARM64
281281
if: ${{ !inputs.dry-run }}
@@ -286,7 +286,7 @@ jobs:
286286
--method=${{ inputs.method }}
287287
288288
cd packages/socketbin-cli-linux-arm64
289-
npm publish --provenance --access public
289+
npm publish --provenance --access public --tag latest --tag latest
290290
291291
- name: Prepare and publish Alpine x64
292292
if: ${{ !inputs.dry-run }}
@@ -297,7 +297,7 @@ jobs:
297297
--method=${{ inputs.method }}
298298
299299
cd packages/socketbin-cli-alpine-x64
300-
npm publish --provenance --access public
300+
npm publish --provenance --access public --tag latest --tag latest
301301
302302
- name: Prepare and publish Alpine ARM64
303303
if: ${{ !inputs.dry-run }}
@@ -308,7 +308,7 @@ jobs:
308308
--method=${{ inputs.method }}
309309
310310
cd packages/socketbin-cli-alpine-arm64
311-
npm publish --provenance --access public
311+
npm publish --provenance --access public --tag latest
312312
313313
- name: Prepare and publish macOS x64
314314
if: ${{ !inputs.dry-run }}
@@ -319,7 +319,7 @@ jobs:
319319
--method=${{ inputs.method }}
320320
321321
cd packages/socketbin-cli-darwin-x64
322-
npm publish --provenance --access public
322+
npm publish --provenance --access public --tag latest
323323
324324
- name: Prepare and publish macOS ARM64
325325
if: ${{ !inputs.dry-run }}
@@ -330,7 +330,7 @@ jobs:
330330
--method=${{ inputs.method }}
331331
332332
cd packages/socketbin-cli-darwin-arm64
333-
npm publish --provenance --access public
333+
npm publish --provenance --access public --tag latest
334334
335335
- name: Prepare and publish Windows x64
336336
if: ${{ !inputs.dry-run }}
@@ -341,7 +341,7 @@ jobs:
341341
--method=${{ inputs.method }}
342342
343343
cd packages/socketbin-cli-win32-x64
344-
npm publish --provenance --access public
344+
npm publish --provenance --access public --tag latest
345345
346346
- name: Prepare and publish Windows ARM64
347347
if: ${{ !inputs.dry-run }}
@@ -352,7 +352,7 @@ jobs:
352352
--method=${{ inputs.method }}
353353
354354
cd packages/socketbin-cli-win32-arm64
355-
npm publish --provenance --access public
355+
npm publish --provenance --access public --tag latest
356356
357357
- name: Prime npm cache for CI (dry-run)
358358
if: ${{ inputs.dry-run }}
@@ -488,7 +488,7 @@ jobs:
488488
- name: Publish main package
489489
if: ${{ !inputs.dry-run }}
490490
working-directory: src/sea/npm-package
491-
run: npm publish --provenance --access public
491+
run: npm publish --provenance --access public --tag latest
492492

493493
- name: Dry run summary
494494
if: ${{ inputs.dry-run }}

0 commit comments

Comments
 (0)