Skip to content
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ project=/path/to/fake-project
cdn=/path/to/fake-cdn

cd $project
git checkout master
git checkout main
set +e
git tag -d 0.0.1
set -e
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ OPTIONS

--branch=branch
Specifies which branch to create the release from.
Defaults to master.
Defaults to main.

--remote=repo
Specifies the remote repository to work with. There are three
Expand Down
2 changes: 1 addition & 1 deletion lib/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Release.define( {
} );

Release._parseRemote();
Release.branch = Release.args.branch || "master";
Release.branch = Release.args.branch || "main";
Release.preRelease = Release.args.preRelease || false;
if ( Release.args.dryRun || Release.args.isTest ) {
Release.isTest = true;
Expand Down
4 changes: 2 additions & 2 deletions lib/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ Release.define( {
// Update package.json URLs
console.log( "Updating package.json URLs..." );
json = Release.readPackage();
json.author.url = json.author.url.replace( "master", Release.newVersion );
json.author.url = json.author.url.replace( "main", Release.newVersion );
if ( json.licenses ) {
json.licenses.forEach( function( license ) {
license.url = license.url.replace( "master", Release.newVersion );
license.url = license.url.replace( "main", Release.newVersion );
} );
}
Release.writePackage( json );
Expand Down