File tree 3 files changed +40
-0
lines changed 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " bacon-jquery-bindings" ,
3
+ "version" : " 0.0.1" ,
4
+ "main" : " dist/Bacon.JQuery.Bindings.js"
5
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -e
2
+
3
+ if [ -z $1 ]; then
4
+ echo " usage: release <version>"
5
+ exit 1
6
+ fi
7
+ version=$1
8
+ files=" component.json package.json bower.json"
9
+ echo " Releasing with version $version "
10
+
11
+ echo " Pulling from origin"
12
+ git pull --rebase origin master
13
+
14
+ echo " Building"
15
+ npm install
16
+ npm test
17
+ ./grunt
18
+
19
+ echo " Updating files"
20
+ sed -i " " ' s/\("version".*:.*\)".*"/\1"' $version ' "/' $files
21
+
22
+ echo " Commit and tag"
23
+ git add .
24
+ git commit -m " release $version "
25
+ git tag $version
26
+
27
+ echo " Push to origin/master"
28
+ git push origin master
29
+ git push --tags origin master
30
+
31
+ echo " Publish to npm -- SKIPPING FOR NOW"
32
+ # npm publish
33
+
34
+ echo " DONE!"
Original file line number Diff line number Diff line change
1
+ cat package.json|grep version|sed 's/.*:.*"\(.*\)".*/\1/'
You can’t perform that action at this time.
0 commit comments