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
.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()