Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

change default --branch value from master to main #64

Merged
merged 1 commit into from
Jan 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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