From 9b30d1de8747bb36a4c9018ed061eb2f0fb06884 Mon Sep 17 00:00:00 2001 From: Martin Blume Date: Wed, 30 Oct 2024 22:09:08 +0100 Subject: [PATCH] npm-version: add page (#14478) Co-authored-by: Wiktor Perskawiec --- pages/common/npm-version.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/npm-version.md diff --git a/pages/common/npm-version.md b/pages/common/npm-version.md new file mode 100644 index 0000000000..a3c806686d --- /dev/null +++ b/pages/common/npm-version.md @@ -0,0 +1,24 @@ +# npm version + +> Bump a node package version. +> More information: . + +- 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}}"`