Skip to content

Commit 2881f3f

Browse files
committed
feat: long-lived v1/v2
1 parent 6da8f28 commit 2881f3f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.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, '2.') && 'sf' || 'latest'}}
1820
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
1921
secrets: inherit

0 commit comments

Comments
 (0)