Skip to content

Commit

Permalink
feat(yarn): changesetBaseRefs will not be set when default branch i…
Browse files Browse the repository at this point in the history
…s `master`
  • Loading branch information
hckhanh committed Apr 3, 2021
1 parent 46060a0 commit e5cda33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/CreateYarn2ConfigsAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export class CreateYarn2ConfigsAction extends Action {

// Set changesetBaseRefs to default branch (require version plugin)
const changesetBaseRefs = getChangesetBaseRefs(this.userConfigs.defaultBranch);
await runCommand("yarn", ["config", "set", "changesetBaseRefs", changesetBaseRefs]);
this.userConfigs.defaultBranch !== "master" &&
(await runCommand("yarn", ["config", "set", "changesetBaseRefs", changesetBaseRefs]));

// Remove old .yarnrc
await removeFile(withCurrentDir("./.yarnrc"));
Expand Down

0 comments on commit e5cda33

Please sign in to comment.