Commit 4799132
committed
Add npm script for safe release publish
Npm publishes all versions with `latest` tag by default. This means that even
versions like `1.1.0-alpha1` will be considered latest by npm and will be
installed by default when typing `npm install neo4j-driver`.
This commit adds a safe publish plugin that will publish versions that consist
of three numbers (like `X.Y.Z`) with `latest` tag and versions that contain
hyphen (like `X.Y.Z-betaAB`) with tag `next`. Users will be able to try out
pre-released driver versions using `npm install neo4j-driver@next`.1 parent 7eac0ae commit 4799132
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments