Skip to content

Commit

Permalink
fix(ci): add version change file only on bump call
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Apr 16, 2023
1 parent 4245965 commit 4d0c390
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ if [ -f $flag_file_path ]; then
exit 0
fi

touch $flag_file_path

if [ ! $(git branch --show-current) = 'main' ]; then
exit 0
fi
Expand All @@ -36,6 +34,8 @@ commit_msg=$(cat $1)

# bump version function
bumpVersion() {
touch $flag_file_path

npm version --no-git-tag-version $1 > /dev/null

sed -i -e "s/$version_match/$version_str$(npm pkg get version)/gi" public/manifest.json
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.2",
"version": "1.1.3",
"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.2",
"version": "1.1.3",
"homepage_url": "https://github.com/nobkd/replace-maps",
"icons": {
"48": "icons/48.png",
Expand Down

0 comments on commit 4d0c390

Please sign in to comment.