File tree Expand file tree Collapse file tree 3 files changed +23
-6
lines changed
Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,18 @@ name: version, tag and github release
33
44on :
55 push :
6- branches : [main]
6+ branches :
7+ - main
8+ - prerelease/*
9+ tags-ignore :
10+ - ' *'
711
812jobs :
913 release :
1014 uses : salesforcecli/github-workflows/.github/workflows/githubRelease.yml@main
1115 secrets : inherit
16+ with :
17+ prerelease : ${{ github.ref_name != 'main' }}
1218
1319 # most repos won't use this
1420 # depends on previous job to avoid git collisions, not for any functionality reason
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: publish
22
33on :
44 release :
5- types : [released ]
5+ types : [published ]
66 # support manual release in case something goes wrong and needs to be repeated or tested
77 workflow_dispatch :
88 inputs :
1111 type : string
1212 required : true
1313jobs :
14+ getDistTag :
15+ outputs :
16+ tag : ${{ steps.distTag.outputs.tag }}
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v3
20+ with :
21+ ref : ${{ github.event.release.tag_name || inputs.tag }}
22+ - uses : salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
23+ id : distTag
1424 npm :
1525 uses : salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
26+ needs : [getDistTag]
1627 with :
1728 ctc : true
1829 sign : true
19- tag : latest
30+ tag : ${{ needs.getDistTag.outputs.tag || ' latest' }}
2031 githubTag : ${{ github.event.release.tag_name || inputs.tag }}
2132 secrets : inherit
Original file line number Diff line number Diff line change 11{
22 "name" : " @salesforce/plugin-source" ,
33 "description" : " Commands to interact with source formatted metadata" ,
4- "version" : " 2.3.9 " ,
4+ "version" : " 2.3.10-dev.0 " ,
55 "author" : " Salesforce" ,
66 "main" : " lib/index.js" ,
77 "bugs" : " https://github.com/forcedotcom/cli/issues" ,
1313 "@salesforce/core" : " ^3.32.8" ,
1414 "@salesforce/kit" : " ^1.8.0" ,
1515 "@salesforce/source-deploy-retrieve" : " ^7.5.17" ,
16- "@salesforce/source-tracking" : " ^ 2.2.15 " ,
16+ "@salesforce/source-tracking" : " 2.2.16-dev.1 " ,
1717 "chalk" : " ^4.1.2" ,
1818 "got" : " ^11.8.3" ,
1919 "jsforce" : " ^2.0.0-beta.19" ,
188188 "publishConfig" : {
189189 "access" : " public"
190190 }
191- }
191+ }
You can’t perform that action at this time.
0 commit comments