Skip to content

Commit

Permalink
improve version updating
Browse files Browse the repository at this point in the history
  • Loading branch information
strowk committed Dec 1, 2024
1 parent 16d94bd commit 65b3a06
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/update_versions.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash

previous_version="0.0.9"
new_version="0.0.10"
previous_version="$(npm view ./packages/npm-mcp-k8s version)"
new_version="${1}"

if [ -z "$new_version" ]; then
echo "Usage: $0 <new_version>"
exit 1
fi

# replace previous version with new version in all .json files in ./packages folder
find ./packages -type f -name '*.json' -exec sed -i '' -e "s/${previous_version}/${new_version}/g" {} \;
Expand Down

0 comments on commit 65b3a06

Please sign in to comment.