mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 19:55:24 +02:00
npm-version: add page (#14478)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
362d958731
commit
9b30d1de87
1 changed files with 24 additions and 0 deletions
24
pages/common/npm-version.md
Normal file
24
pages/common/npm-version.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# npm version
|
||||
|
||||
> Bump a node package version.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-version>.
|
||||
|
||||
- Check current version:
|
||||
|
||||
`npm version`
|
||||
|
||||
- Bump the minor version:
|
||||
|
||||
`npm version minor`
|
||||
|
||||
- Set a specific version:
|
||||
|
||||
`npm version {{version}}`
|
||||
|
||||
- Bump the patch version without creating a Git tag:
|
||||
|
||||
`npm version patch --no-git-tag-version`
|
||||
|
||||
- Bump the major version with a custom commit message:
|
||||
|
||||
`npm version major -m "{{Upgrade to %s for reasons}}"`
|
Loading…
Add table
Reference in a new issue