Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Publish script.

  • Loading branch information...
commit 468a5a2e24354614705af873bf43287a3f926e10 1 parent 17c582e
@wvanbergen authored
Showing with 5 additions and 2 deletions.
  1. +4 −1 Cakefile
  2. +1 −1  package.json
View
5 Cakefile
@@ -16,7 +16,10 @@ task 'test', ->
exec 'vows test/*.coffee', (error, stdout, stderr) ->
print stdout
print stderr
-
+
task 'tag', ->
throw "Please do not run this task directly, use npm publish instead." unless process.env.npm_package_name? && process.env.npm_package_version?
exec "git tag -m 'Tagged #{process.env.npm_package_name} version #{process.env.npm_package_version}.' '#{process.env.npm_package_name}-#{process.env.npm_package_version}'"
+
+task 'push', ->
+ exec "git push --tags"
View
2  package.json
@@ -33,7 +33,7 @@
},
"engine": "node >= 0.4.0",
"scripts": {
- "prepublish": "cake clean && cake build && cake test && cake tag",
+ "prepublish": "cake clean && cake build && cake test && cake tag && git push",
"test": "cake test"
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.