Skip to content

Commit 15e4154

Browse files
authored
Build: Make main the default branch instead of master
Closes gh-107
1 parent 0606900 commit 15e4154

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ project=/path/to/fake-project
2828
cdn=/path/to/fake-cdn
2929

3030
cd $project
31-
git checkout master
31+
git checkout main
3232
set +e
3333
git tag -d 0.0.1
3434
set -e

docs/usage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ OPTIONS
1111

1212
--branch=branch
1313
Specifies which branch to create the release from.
14-
Defaults to master.
14+
Defaults to main.
1515

1616
--remote=repo
1717
Specifies the remote repository to work with. There are three

lib/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Release.define( {
4141
} );
4242

4343
Release._parseRemote();
44-
Release.branch = Release.args.branch || "master";
44+
Release.branch = Release.args.branch || "main";
4545
Release.preRelease = Release.args.preRelease || false;
4646
if ( Release.args.dryRun || Release.args.isTest ) {
4747
Release.isTest = true;

lib/repo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ Release.define( {
212212
// Update package.json URLs
213213
console.log( "Updating package.json URLs..." );
214214
json = Release.readPackage();
215-
json.author.url = json.author.url.replace( "master", Release.newVersion );
215+
json.author.url = json.author.url.replace( "main", Release.newVersion );
216216
if ( json.licenses ) {
217217
json.licenses.forEach( function( license ) {
218-
license.url = license.url.replace( "master", Release.newVersion );
218+
license.url = license.url.replace( "main", Release.newVersion );
219219
} );
220220
}
221221
Release.writePackage( json );

0 commit comments

Comments
 (0)