File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,22 @@ if [ $(git rev-parse --abbrev-ref HEAD) != "master" ]; then
13
13
fi
14
14
15
15
# update the version in package.json
16
- npm version $1
16
+ sed -i ' ' -e " s/\" version\" : \" .*\" /\" version\" : \" $1 \" /" package.json
17
+
17
18
18
19
# update the version in cargo.toml
19
20
sed -i ' ' -e " s/^version = \" .*\" /version = \" $1 \" /" Cargo.toml
21
+ cargo build
20
22
21
23
# commit the changes with the version
22
- git add Cargo.toml package.json
23
- git commit -m " Release $1 "
24
+ git add Cargo.toml package.json Cargo.lock
25
+ git commit -m " Release v $1 "
24
26
25
27
# tag current commit with the first argument
26
- git tag -a $1 -m " Release $1 "
28
+ git tag -a v $1 -m " Release v $1 "
27
29
28
30
# push the changes
29
31
git push origin master
30
32
31
33
# push the tag
32
- git push origin $1
34
+ git push origin v $1
You can’t perform that action at this time.
0 commit comments