-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and fix release-preview-rc.sh script
- Loading branch information
Showing
2 changed files
with
17 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ if [ ! $1 ]; then | |
fi | ||
VERSION=$1 | ||
|
||
echo "Building beta from next branch for $VERSION" | ||
echo "Building prerelease from next branch for $VERSION" | ||
# Get the software. | ||
git clone [email protected]:tangerine-community/tangerine tmp | ||
cd tmp | ||
|
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 |
---|---|---|
|
@@ -3,19 +3,26 @@ if [ ! $1 ]; then | |
exit | ||
fi | ||
VERSION=$1 | ||
echo "Building beta from next branch for $VERSION" | ||
cd tangerine-preview | ||
npm install | ||
|
||
echo "Building RC from $VERSION" | ||
# Get the software. | ||
git clone [email protected]:tangerine-community/tangerine tmp | ||
cd tmp | ||
git checkout next | ||
cd client | ||
git checkout $VERSION | ||
# Set up tangerine-preview. | ||
cd tangerine-preview | ||
npm install | ||
# Set up client. | ||
cd ../client | ||
npm install | ||
npm run build | ||
rm -fr ../../app | ||
mv dist/tangerine-client ../../app | ||
cd ../../ | ||
rm -rf tmp | ||
# Swap out. | ||
rm -fr ../tangerine-preview/app | ||
mv dist/tangerine-client ../tangerine-preview/app | ||
# Release. | ||
cd ../tangerine-preview/ | ||
npm version $VERSION | ||
npm publish --tag rc | ||
# Clean up. | ||
cd ../ | ||
rm -rf tmp |