Skip to content
This repository
Browse code

Publish script.

  • Loading branch information...
commit 468a5a2e24354614705af873bf43287a3f926e10 1 parent 17c582e
Willem van Bergen authored

Showing 2 changed files with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 1 Cakefile
  2. +1 1  package.json
5 Cakefile
@@ -16,7 +16,10 @@ task 'test', ->
16 16 exec 'vows test/*.coffee', (error, stdout, stderr) ->
17 17 print stdout
18 18 print stderr
19   -
  19 +
20 20 task 'tag', ->
21 21 throw "Please do not run this task directly, use npm publish instead." unless process.env.npm_package_name? && process.env.npm_package_version?
22 22 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}'"
  23 +
  24 +task 'push', ->
  25 + exec "git push --tags"
2  package.json
@@ -33,7 +33,7 @@
33 33 },
34 34 "engine": "node >= 0.4.0",
35 35 "scripts": {
36   - "prepublish": "cake clean && cake build && cake test && cake tag",
  36 + "prepublish": "cake clean && cake build && cake test && cake tag && git push",
37 37 "test": "cake test"
38 38 }
39 39 }

0 comments on commit 468a5a2

Please sign in to comment.
Something went wrong with that request. Please try again.