Skip to content

Commit 3d94b79

Browse files
committed
chore: changes
1 parent ce74bf8 commit 3d94b79

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/onRelease.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
npm:
1515
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
1616
with:
17-
tag: latest
17+
# ternary-ish https://github.com/actions/runner/issues/409#issuecomment-752775072
18+
# if the version is 2.x we release it on the `sf` dist tag
19+
tag: ${{ startsWith( github.event.release.tag_name || inputs.tag, '1.') && 'latest' || 'sf'}}
1820
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
1921
secrets: inherit

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: tests
22
on:
33
push:
4-
branches-ignore: [v2]
4+
branches-ignore: [main, v2]
55
workflow_dispatch:
66

77
jobs:

0 commit comments

Comments
 (0)