Skip to content

Commit

Permalink
Update and fix release-preview-rc.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
rjcorwin committed Aug 31, 2020
1 parent 4248454 commit fe8f07c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion release-preview-prerelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 16 additions & 9 deletions release-preview-rc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fe8f07c

Please sign in to comment.