Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v0.0.1 #3

Merged
merged 5 commits into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions prepare_release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -eu

VERSION=$1

# Check if an argument is provided
Expand Down Expand Up @@ -43,11 +45,14 @@ fi
sed -i '' -e "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json

# Update the version number in the package-lock.json file
sed -i '' -e "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package-lock.json
jq --arg version "$VERSION" '
.version = $version |
.packages[""].version = $version
' package-lock.json >tmp.json && mv tmp.json package-lock.json

# Commit the changes
git add package.json package-lock.json
git commit -m "Update version to $VERSION"
git commit -m "chore: update version to $VERSION"
git tag -a $TAG -m "Release version $VERSION"

echo "Version updated to $VERSION and tagged in Git."
Expand Down