We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6da8f28 commit 2881f3fCopy full SHA for 2881f3f
1 file changed
.github/workflows/onRelease.yml
@@ -14,6 +14,8 @@ jobs:
14
npm:
15
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
16
with:
17
- tag: latest
+ # 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'}}
20
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
21
secrets: inherit
0 commit comments