-
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.
Adds scripts and configurations to support hotfix release workflows (#…
…2545) * Add scripts and configs to support hotfix release * Uncomment publish * fixes * fixes * fixes * Use git diff tree instead of show
- Loading branch information
1 parent
83d22bf
commit 410efab
Showing
6 changed files
with
95 additions
and
32 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