Skip to content

Commit

Permalink
bump-version-patch: run ./create-gh-release.sh helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Oct 13, 2021
1 parent 84ec2ae commit 9bd8657
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions create-gh-release.sh
@@ -0,0 +1,9 @@
#!/bin/bash
# @see https://cli.github.com/manual/gh_release_create

export VERSION=v$(grep '"version"' package.json | grep -Eo '[0-9\.]+')
export NOTES=$(git log | grep 'Updating rules/prefixes.json' | head -n 1 | sed "s/ //g")

echo "Creating a GitHub release for tag ${VERSION} (with notes '${NOTES}') ..."

gh release create $VERSION --title 'Updating prefixes data' --notes "${NOTES}"
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -57,7 +57,7 @@
"lint": "eslint .",
"prettier": "npx prettier --write .",
"prefixes": "npx browserslist@latest --update-db; DEBUG=* node data/prefixes.js",
"bump-version-patch": "npm version patch && git add -A . && git push && git push --tags"
"bump-version-patch": "npm version patch && git add -A . && git push origin master && git push --tags && ./create-gh-release.sh"
},
"jshintConfig": {
"esversion": 6,
Expand Down

0 comments on commit 9bd8657

Please sign in to comment.