-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): add release script and fix github publish action
- Loading branch information
Showing
6 changed files
with
42 additions
and
7 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,27 @@ | ||
#! /bin/sh | ||
|
||
GREEN='\033[0;32m' | ||
YELLOW='\033[0;33m' | ||
NC='\033[0m' | ||
|
||
echo "🪜 Incrementing version number" | ||
npm version patch | ||
|
||
NEW_VERSION=$(npm pkg get version | tr -d '"') | ||
|
||
echo "🌿 Creating release branch for v$NEW_VERSION" | ||
git checkout -b release/$NEW_VERSION | ||
git add . | ||
git commit -m "chore: bump to $NEW_VERSION" | ||
git push origin release/$NEW_VERSION | ||
|
||
echo | ||
echo | ||
echo -e "----------------------------------------" | ||
echo -e "|| ${GREEN} Your release is ready for review ${NC} ||" | ||
echo -e "----------------------------------------" | ||
echo -e "1️⃣ Go to ${YELLOW}https://github.com/Chainlit/typescript-client/compare/main...release/$NEW_VERSION${NC}" | ||
echo -e "2️⃣ Create a pull request and merge it to main" | ||
echo -e "3️⃣ Go to ${YELLOW}https://github.com/Chainlit/typescript-client/actions/workflows/publish.yaml${NC}" | ||
echo -e "4️⃣ Click on 'Run workflow'" | ||
echo -e "5️⃣ Rock'n'roll 🎸" |
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