Skip to content

Commit

Permalink
feat(init): rename default branch: master -> main (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored Aug 8, 2020
1 parent b873407 commit d7b849a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 118 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: commitlint

on:
push:
branches: ["master"]
branches: ["main"]
pull_request:
branches: ["**"]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test

on:
push:
branches: ["master"]
branches: ["main"]
pull_request:
branches: ["**"]
tags: ["**"]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"prerelease": "git checkout master && git pull origin master && npm ci && npm test",
"prerelease": "git switch main && git pull && npm ci && npm test",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run"
},
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Object {
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:types": "tsc --noEmit",
"prerelease": "git checkout master && git pull origin master && npm ci && npm test",
"prerelease": "git switch main && git pull && npm ci && npm test",
"prettier": "prettier --ignore-path .gitignore .",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
Expand Down Expand Up @@ -130,7 +130,7 @@ Object {
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:types": "tsc --noEmit",
"prerelease": "git checkout master && git pull origin master && npm ci && npm test",
"prerelease": "git switch main && git pull && npm ci && npm test",
"prettier": "prettier --ignore-path .gitignore .",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
Expand Down
56 changes: 0 additions & 56 deletions test/fixtures/package-empty_expected.json

This file was deleted.

57 changes: 0 additions & 57 deletions test/fixtures/package-normal_expected.json

This file was deleted.

0 comments on commit d7b849a

Please sign in to comment.