Skip to content

Commit aae3454

Browse files
committed
Add npm run push-tag, to push a tag with the current package.json version
1 parent 248ba67 commit aae3454

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
@@ -204,7 +204,8 @@
204204
"postinstall": "node ./node_modules/vscode/bin/install",
205205
"test": "npm run compile && node ./node_modules/vscode/bin/test",
206206
"tslint": "tslint -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'",
207-
"tslint-fix": "tslint --fix -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'"
207+
"tslint-fix": "tslint --fix -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'",
208+
"push-tag": "git tag -a $npm_package_version -m \"Version $npm_package_version\" && git push origin $npm_package_version"
208209
},
209210
"devDependencies": {
210211
"@types/mocha": "^2.2.46",

0 commit comments

Comments
 (0)