File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 type : string
1616 required : false
1717 default : " 0.18.0"
18- publish_package :
19- description : " Whether to publish a package from the root folder to an npm registry"
20- required : true
21- type : boolean
22- publish_subpackages :
23- description : " comma separated list of subpackage folders to publish to an npm registry"
18+ publish_packages :
19+ description : " comma separated list of package folders to publish to an npm registry"
2420 required : false
2521 type : string
2622 default : " "
@@ -319,8 +315,7 @@ jobs:
319315 env :
320316 GITHUB_TOKEN : ${{ github.token }}
321317 BRANCH_NAME : ${{ inputs.branch_name }}
322- PUBLISH_PACKAGE : ${{ inputs.publish_package }}
323- PUBLISH_SUBPACKAGES : ${{ inputs.publish_subpackages }}
318+ PUBLISH_PACKAGES : ${{ inputs.publish_packages }}
324319 TAG_FORMAT : ${{ inputs.tag_format }}
325320 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
326321 MAIN_BRANCH : ${{ inputs.main_branch }}
@@ -331,8 +326,7 @@ jobs:
331326 env :
332327 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
333328 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
334- PUBLISH_PACKAGE : ${{ inputs.publish_package }}
335- PUBLISH_SUBPACKAGES : ${{ inputs.publish_subpackages }}
329+ PUBLISH_PACKAGES : ${{ inputs.publish_packages }}
336330 TAG_FORMAT : ${{ inputs.tag_format }}
337331 MAIN_BRANCH : ${{ inputs.main_branch }}
338332 EXTRA_ASSET : ${{ inputs.extra_artifact_name }}
Original file line number Diff line number Diff line change 22const { readFileSync } = require ( "fs" )
33
44const commitTemplate = readFileSync ( "./releaseNotesTemplates/commit.hbs" ) . toString ( )
5- const publish_package = process . env . PUBLISH_PACKAGE === "true"
65const publish_subpackages = process . env . PUBLISH_SUBPACKAGES ?. split ( "," ) . map ( s => s . trim ( ) ) . filter ( s => s . length > 0 ) || [ ]
76const mainBranch = process . env . MAIN_BRANCH || "main"
87
@@ -68,7 +67,6 @@ module.exports = {
6867 changelogFile : "CHANGELOG.md"
6968 }
7069 ] ,
71- ...( publish_package ? [ "@semantic-release/npm" ] : [ ] ) ,
7270 ...publish_subpackages . map ( subpackage => [
7371 "@semantic-release/npm" ,
7472 {
Original file line number Diff line number Diff line change 11sonar.organization =nhsdigital
22sonar.projectKey =NHSDigital_eps-common-workflows
3- sonar.host.url =https://sonarcloud.io
3+ sonar.host.url =https://sonarcloud.io
4+
5+ sonar.coverage.exclusions =\
6+ release.config.js
You can’t perform that action at this time.
0 commit comments