Skip to content

Commit

Permalink
docs: explain that git-tag-version=false does not commit (#4574)
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar authored Mar 17, 2022
1 parent 8ff1dfa commit ddbb505
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/content/commands/npm-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ Run git commit hooks when using the `npm version` command.
* Default: true
* Type: Boolean

Tag the commit when using the `npm version` command.
Tag the commit when using the `npm version` command. Setting this to false
results in no commit being made at all.

<!-- automatically generated, do not edit manually -->
<!-- see lib/utils/config/definitions.js -->
Expand Down
3 changes: 2 additions & 1 deletion docs/content/using-npm/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,8 @@ but is not in the `PATH`, then set this to the full path to the git binary.
* Default: true
* Type: Boolean

Tag the commit when using the `npm version` command.
Tag the commit when using the `npm version` command. Setting this to false
results in no commit being made at all.

<!-- automatically generated, do not edit manually -->
<!-- see lib/utils/config/definitions.js -->
Expand Down
3 changes: 2 additions & 1 deletion lib/utils/config/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,8 @@ define('git-tag-version', {
default: true,
type: Boolean,
description: `
Tag the commit when using the \`npm version\` command.
Tag the commit when using the \`npm version\` command. Setting this to
false results in no commit being made at all.
`,
flatten,
})
Expand Down
3 changes: 2 additions & 1 deletion tap-snapshots/test/lib/utils/config/definitions.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,8 @@ exports[`test/lib/utils/config/definitions.js TAP > config description for git-t
* Default: true
* Type: Boolean
Tag the commit when using the \`npm version\` command.
Tag the commit when using the \`npm version\` command. Setting this to false
results in no commit being made at all.
`

exports[`test/lib/utils/config/definitions.js TAP > config description for global 1`] = `
Expand Down
3 changes: 2 additions & 1 deletion tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,8 @@ but is not in the \`PATH\`, then set this to the full path to the git binary.
* Default: true
* Type: Boolean
Tag the commit when using the \`npm version\` command.
Tag the commit when using the \`npm version\` command. Setting this to false
results in no commit being made at all.
<!-- automatically generated, do not edit manually -->
<!-- see lib/utils/config/definitions.js -->
Expand Down

0 comments on commit ddbb505

Please sign in to comment.