Skip to content

Commit

Permalink
fix: always check conventional commits schema & bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Apr 18, 2023
1 parent c16d51e commit b1c20ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ if [ -f $flag_file_path ]; then
exit 0
fi

if [ $(git branch --show-current) != 'main' ]; then
exit 0
fi

# types
parens='(\(\w+\))?'
msg=':\s.+'
Expand All @@ -33,6 +29,10 @@ if ! [[ $commit_msg =~ $commit_types$opt_exclam$msg ]]; then
exit 1
fi

if [ $(git branch --show-current) != 'main' ]; then
exit 0
fi

# bump version function
bumpVersion() {
touch $flag_file_path
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Replace Maps iframes with OSM",
"author": "nobkd",
"license": "Unlicense",
"version": "1.1.5",
"version": "1.1.7",
"type": "module",
"homepage": "https://github.com/nobkd/replace-maps#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Replace Maps iframes with OSM",
"manifest_version": 2,
"name": "Replace Maps",
"version": "1.1.5",
"version": "1.1.7",
"homepage_url": "https://github.com/nobkd/replace-maps",
"icons": {
"48": "icons/48.png",
Expand Down

0 comments on commit b1c20ba

Please sign in to comment.