-
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 configuration to support hotfix workflows
- Loading branch information
1 parent
811d006
commit 6ec125d
Showing
5 changed files
with
67 additions
and
24 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