newspack-scripts 5.4.0 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/release.js +4 -1
package/package.json
CHANGED
package/scripts/release.js
CHANGED
|
@@ -21,6 +21,8 @@ if (shouldPublishOnNPM) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const getConfig = ({ gitBranchName }) => {
|
|
24
|
+
const branchType = gitBranchName.split("/")[0];
|
|
25
|
+
|
|
24
26
|
const config = {
|
|
25
27
|
dryRun: otherArgs.dryRun,
|
|
26
28
|
ci: otherArgs.ci,
|
|
@@ -71,6 +73,8 @@ const getConfig = ({ gitBranchName }) => {
|
|
|
71
73
|
label: `${process.env.CIRCLE_PROJECT_REPONAME}.zip`,
|
|
72
74
|
},
|
|
73
75
|
],
|
|
76
|
+
// Only post GH PR comments for alpha, hotfix/*, and release branches.
|
|
77
|
+
successComment: ["alpha", "hotfix", "release"].includes(branchType),
|
|
74
78
|
},
|
|
75
79
|
],
|
|
76
80
|
],
|
|
@@ -87,7 +91,6 @@ const getConfig = ({ gitBranchName }) => {
|
|
|
87
91
|
]);
|
|
88
92
|
|
|
89
93
|
// Unless on a hotfix or epic branch, add a commit that updates the files.
|
|
90
|
-
const branchType = gitBranchName.split("/")[0];
|
|
91
94
|
if (["hotfix", "epic"].indexOf(branchType) === -1) {
|
|
92
95
|
let assets = filesList;
|
|
93
96
|
// These assets should be added to source control after a release.
|