Skip to content

Commit d0379c0

Browse files
committed
Add npm script for release versioning
Version is set in `package.json` (used as npm package version) and in `src/version.js` (used to create driver's user agent string). Script is named `versionRelease` and requires `VERSION` env variable to be set. Examples: ``` VERSION=1.1.5 npm run versionRelease VERSION=1.1.5-rc01 npm run versionRelease VERSION=1.1.5-alpha03 npm run versionRelease ```
1 parent 98272d2 commit d0379c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"start-neo4j": "gulp start-neo4j",
1616
"stop-neo4j": "gulp stop-neo4j",
1717
"run-tck": "gulp run-tck",
18-
"docs": "node_modules/.bin/esdoc -c esdoc.json"
18+
"docs": "node_modules/.bin/esdoc -c esdoc.json",
19+
"versionRelease": "gulp set --version $VERSION && npm version $VERSION --no-git-tag-version"
1920
},
2021
"main": "lib/index.js",
2122
"devDependencies": {

0 commit comments

Comments
 (0)