-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripts and configs to support hotfix release
- Loading branch information
1 parent
bff7a84
commit 6053ca3
Showing
6 changed files
with
91 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
#!/bin/bash | ||
|
||
set -e # exit on error | ||
|
||
# this script assumes the last commit was publish commit and gets all package.json files changed in the last commit | ||
# and generates tags for each package.json file. | ||
files=$(git show --pretty="" --name-only HEAD | grep -Ei '^packages/.*package\.json$') | ||
for file in $files; do | ||
tag=$(cat $file | jq -r '.name + "@" + .version') | ||
echo "Tagging $sha with $tag" | ||
git tag -a $tag -m "Release $tag" --force | ||
git push origin $tag | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters