Skip to content

Commit

Permalink
Default --yes to true in CI (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 authored Mar 9, 2023
1 parent 0415da1 commit 4cd3fe3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions change/beachball-ab77859e-4dd5-4372-a1c8-9f2eb9a2e487.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Default --yes to true in CI",
"packageName": "beachball",
"email": "elcraig@microsoft.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion docs/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ These options are applicable for the `publish` command, as well as `bump` and/or
| `--tag` | `-t` | `'latest'` | dist-tag for npm publishes |
| `--token` | `-n` | | credential to use with npm commands. its type is specified with the `--authType` argument |
| `--verbose` | | `false` | prints additional information to the console |
| `--yes` | `-y` | | skips the prompts for publish |
| `--yes` | `-y` | if CI detected, `true` | skips the prompts for publish |
| `--new` | | `false` | publishes new packages if not in registry |
2 changes: 1 addition & 1 deletion src/options/getDefaultOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function getDefaultOptions() {
token: '',
gitTags: true,
tag: '',
yes: false,
yes: !!(process.env.CI || process.env.TF_BUILD),
access: 'restricted',
changehint: 'Run "beachball change" to create a change file',
type: null,
Expand Down

0 comments on commit 4cd3fe3

Please sign in to comment.