Skip to content

Commit

Permalink
change default --branch value from master to main
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Dec 28, 2023
1 parent a742b09 commit 8e0db93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Several things will happen if one elects to continue:
git add package.json
git commit --message 'Version 0.6.1'
git tag --annotate v0.6.1 --message 'Version 0.6.1'
git push --atomic origin refs/heads/master refs/tags/v0.6.1
git push --atomic origin refs/heads/main refs/tags/v0.6.1
env VERSION=0.6.1 PREVIOUS_VERSION=0.6.0 bash -c 'npm publish'

> [!IMPORTANT]
Expand All @@ -41,7 +41,7 @@ Several things will happen if one elects to continue:
-b --branch <name>
Specify the branch from which new versions must be published.
xyz aborts if run from any other branch to prevent accidental
publication of feature branches. 'master' is assumed if this
publication of feature branches. 'main' is assumed if this
option is omitted.

-e --edit
Expand Down
4 changes: 2 additions & 2 deletions xyz
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Options:
-b --branch <name>
Specify the branch from which new versions must be published.
xyz aborts if run from any other branch to prevent accidental
publication of feature branches. 'master' is assumed if this
publication of feature branches. 'main' is assumed if this
option is omitted.
-e --edit
Expand Down Expand Up @@ -146,7 +146,7 @@ check_bash_version() {
check_bash_version

declare -A options=(
[branch]=master
[branch]=main
[dry-run]=false
[edit]=false
[increment]=patch
Expand Down

0 comments on commit 8e0db93

Please sign in to comment.