Skip to content

Commit

Permalink
Change Version in package.json automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
theVinesh committed Jan 14, 2020
1 parent 2a3c465 commit f413c7a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "thevinesh.dev",
"version": "2.5.2",
"url": "https://theVinesh.dev",
"name": "thevinesh.com",
"version": "<VERSION>",
"url": "https://theVinesh.com",
"description": "Hi, I am Vinesh Raju. I am an Android developer currently working at Swiggy.",
"author": "Vinesh Raju",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ curl -X POST \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"tag_name": "'$VERSION'",
"tag_name": "'v$VERSION'",
"target_commitish": "master",
"name": "'$VERSION'",
"name": "'v$VERSION'",
"draft": true
}
'
'
4 changes: 3 additions & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ if (( $minor > 9 )); then
$((major+=1))
fi

echo "v$major.$minor.$patch"
version="$major.$minor.$patch"
sed -i -e "s/<VERSION>/$version/g" package.json
echo "$version"

0 comments on commit f413c7a

Please sign in to comment.