]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
build: fix release v4.0.0-alpha.4
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 28 Mar 2020 21:21:45 +0000 (22:21 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Sat, 28 Mar 2020 21:22:40 +0000 (22:22 +0100)
scripts/release.sh
scripts/verifyCommit.js

index 783bae1270c35e04bb83e259a87e972f537b6c30..bd0400a4dd1d6b6e6e6cbc28b108f0e49413700b 100644 (file)
@@ -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
index c3347499c53a23ff1628df971de5bcbd7e9c2957..48f66c19c49656ea8821f96aa013c632413eb07e 100644 (file)
@@ -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()