Skip to content

Commit cc76d47

Browse files
authored
Merge pull request #226 from salesforcecli/sm/releasing-long-lived-branches
Sm/releasing long lived branches
2 parents b0cf0e2 + 1af1114 commit cc76d47

File tree

2 files changed

+4
-2
lines changed

2 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

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022, Salesforce.com, Inc.
1+
Copyright (c) 2023, Salesforce.com, Inc.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

0 commit comments

Comments
 (0)