Skip to content

Commit 97400e7

Browse files
committed
ci: 💚 add github publish to release process and cleanup packages.
1 parent d992cd1 commit 97400e7

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

scripts/release.js

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ require("dotenv").config();
44
const path = require("path");
55
const readPkg = require("read-pkg");
66
const globby = require("globby");
7-
const execa = require("execa");
87

98
if (argv.require) {
109
if (Array.isArray(argv.require)) {
@@ -23,7 +22,6 @@ const toPublish = [
2322
"webiny-app",
2423
"webiny-app-admin",
2524
"webiny-app-cms",
26-
"webiny-cms-editor",
2725
"webiny-ui",
2826
"webiny-compose",
2927
"webiny-data-extractor",
@@ -64,11 +62,12 @@ const packages = globby
6462
const config = {
6563
preview: argv.preview || false,
6664
branch: argv.branch || "master",
67-
ci: true,
65+
ci: false,
6866
tagFormat: pkg => pkg.name + "@v${version}",
6967
packages,
7068
plugins: [
7169
wsr.npmVerify(),
70+
wsr.githubVerify(),
7271
wsr.analyzeCommits({
7372
isRelevant: (pkg, commit) => {
7473
if (commit.message.match(/affects: ((?:.+[\n\r]?)+)/gm)) {
@@ -91,22 +90,7 @@ const config = {
9190
next();
9291
},
9392
wsr.npmPublish(),
94-
// This following plugin is only for Webiny monorepo
95-
async ({ packages, config }, next) => {
96-
if (config.preview) {
97-
return;
98-
}
99-
100-
for (let i = 0; i < packages.length; i++) {
101-
const pkg = packages[i];
102-
if (!pkg.nextRelease || !pkg.nextRelease.gitTag) {
103-
continue;
104-
}
105-
106-
await execa("git", ["tag", pkg.nextRelease.gitTag]);
107-
}
108-
next();
109-
}
93+
wsr.githubPublish()
11094
]
11195
};
11296

0 commit comments

Comments
 (0)