Skip to content

Commit d463e32

Browse files
Removed option to publish package from the root directory
1 parent 5f63ea3 commit d463e32

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

.github/workflows/tag-release.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ on:
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 }}

release.config.cjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
const { readFileSync } = require("fs")
33

44
const commitTemplate = readFileSync("./releaseNotesTemplates/commit.hbs").toString()
5-
const publish_package = process.env.PUBLISH_PACKAGE === "true"
65
const publish_subpackages = process.env.PUBLISH_SUBPACKAGES?.split(",").map(s => s.trim()).filter(s => s.length > 0) || []
76
const 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
{

sonar-project.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
sonar.organization=nhsdigital
22
sonar.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

0 commit comments

Comments
 (0)