From 97400e7c4490bb6bd574f80c3a35fba545aa9e83 Mon Sep 17 00:00:00 2001 From: Pavel910 Date: Sun, 16 Sep 2018 15:15:29 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=92=9A=20=20add=20github=20publish?= =?UTF-8?q?=20to=20release=20process=20and=20cleanup=20packages.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/release.js | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/scripts/release.js b/scripts/release.js index 1c3fb009644..03d2acb533f 100755 --- a/scripts/release.js +++ b/scripts/release.js @@ -4,7 +4,6 @@ require("dotenv").config(); const path = require("path"); const readPkg = require("read-pkg"); const globby = require("globby"); -const execa = require("execa"); if (argv.require) { if (Array.isArray(argv.require)) { @@ -23,7 +22,6 @@ const toPublish = [ "webiny-app", "webiny-app-admin", "webiny-app-cms", - "webiny-cms-editor", "webiny-ui", "webiny-compose", "webiny-data-extractor", @@ -64,11 +62,12 @@ const packages = globby const config = { preview: argv.preview || false, branch: argv.branch || "master", - ci: true, + ci: false, tagFormat: pkg => pkg.name + "@v${version}", packages, plugins: [ wsr.npmVerify(), + wsr.githubVerify(), wsr.analyzeCommits({ isRelevant: (pkg, commit) => { if (commit.message.match(/affects: ((?:.+[\n\r]?)+)/gm)) { @@ -91,22 +90,7 @@ const config = { next(); }, wsr.npmPublish(), - // This following plugin is only for Webiny monorepo - async ({ packages, config }, next) => { - if (config.preview) { - return; - } - - for (let i = 0; i < packages.length; i++) { - const pkg = packages[i]; - if (!pkg.nextRelease || !pkg.nextRelease.gitTag) { - continue; - } - - await execa("git", ["tag", pkg.nextRelease.gitTag]); - } - next(); - } + wsr.githubPublish() ] };