From: Eduardo San Martin Morote Date: Sat, 28 Mar 2020 21:21:45 +0000 (+0100) Subject: build: fix release X-Git-Tag: v4.0.0-alpha.4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e7969b248a2da7d05dc89452c86679fc468f836;p=thirdparty%2Fvuejs%2Frouter.git build: fix release --- diff --git a/scripts/release.sh b/scripts/release.sh index 783bae12..bd0400a4 100644 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -12,15 +12,25 @@ then echo "Releasing v$VERSION ..." npm test - # commit - yarn publish --tag next --new-version $VERSION + yarn build + yarn build:dts + + # generate the version so that the changelog can be generated too + yarn version --no-git-tag-version --no-commit-hooks --new-version $VERSION # changelog yarn run changelog echo "Please check the git history and the changelog and press enter" read OKAY - git add CHANGELOG.md - git commit -m "chore(changelog): $VERSION" + + # commit and tag + git add CHANGELOG.md package.json + git commit -m "realese: v$VERSION" + git tag "v$VERSION" + + # commit + # TODO: make sure this works the next time + yarn publish --tag next --new-version $VERSION --no-commit-hooks --no-git-tag-version # publish git push origin refs/tags/v$VERSION diff --git a/scripts/verifyCommit.js b/scripts/verifyCommit.js index c3347499..48f66c19 100644 --- a/scripts/verifyCommit.js +++ b/scripts/verifyCommit.js @@ -6,7 +6,7 @@ const msg = require('fs') .readFileSync(msgPath, 'utf-8') .trim() -const commitRE = /^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release|v4.\d.[\d\w.-]+)(\(.+\))?: .{1,50}/ +const commitRE = /^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/ if (!commitRE.test(msg)) { console.log()