summaryrefslogtreecommitdiff
path: root/deps/npm/doc/cli/npm-version.md
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/doc/cli/npm-version.md')
-rw-r--r--deps/npm/doc/cli/npm-version.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/npm/doc/cli/npm-version.md b/deps/npm/doc/cli/npm-version.md
index 545bce6b6b..63a5e95122 100644
--- a/deps/npm/doc/cli/npm-version.md
+++ b/deps/npm/doc/cli/npm-version.md
@@ -40,6 +40,14 @@ in your git config for this to work properly. For example:
Enter passphrase:
+If "preversion", "version", "postversion" in the "scripts" property of
+the package.json, it will execute by running `npm version`. preversion
+and version ware executed before bump the package version, postversion
+was executed after bump the package version. For example to run `npm version`
+after passed all test:
+
+ "scripts": { "preversion": "npm test" }
+
## CONFIGURATION
### git-tag-version
@@ -52,6 +60,8 @@ Commit and tag the version change.
## SEE ALSO
* npm-init(1)
+* npm-run-script(1)
+* npm-scripts(7)
* package.json(5)
* semver(7)
* config(7)