Skip to content

Commit

Permalink
Draft git release in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd committed May 13, 2020
1 parent 2226ec3 commit bba478d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function updateGit(version) {
generateChangelog();
exec.execSync(`git commit -m "Update package.json version to ${version} and generate CHANGELOG.gren.md [ci skip]"`);
exec.execSync(`git push deploy ${BRANCH}`);
draftGitRelease(version);
}

function updatePackageJson(version) {
Expand All @@ -135,4 +136,8 @@ function generateChangelog() {
exec.execSync(`git add ${grenrc.changelogFilename}`);
}

function draftGitRelease(version) {
exec.execSync(`npx gren release --tags=${version}`);
}

run();

0 comments on commit bba478d

Please sign in to comment.