Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(install): let the user choose if they want to use @next release #2789

Merged
merged 2 commits into from
Jul 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,15 @@ success "Installed system updates!"

heading "Installing ARK Core..."

while ! yarn global add @arkecosystem/core ; do
read -p "Do you want to use the unstable development build? [y/N]: " choiceBuild

if [[ "$choiceBuild" =~ ^(yes|y|Y) ]]; then
commandInstall="yarn global add @arkecosystem/core@next"
else
commandInstall="yarn global add @arkecosystem/core"
fi

while ! $commandInstall ; do
read -p "Installing ARK Core failed, do you want to retry? [y/N]: " choice
if [[ ! "$choice" =~ ^(yes|y|Y) ]] ; then
exit 1
Expand Down
1 change: 1 addition & 0 deletions scripts/publish/alpha.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

for dir in `find packages -mindepth 1 -maxdepth 1 -type d | sort -nr`; do
git checkout develop
cd $dir
echo $PWD
npm publish --tag alpha
Expand Down
1 change: 1 addition & 0 deletions scripts/publish/beta.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

for dir in `find packages -mindepth 1 -maxdepth 1 -type d | sort -nr`; do
git checkout develop
cd $dir
echo $PWD
npm publish --tag beta
Expand Down
1 change: 1 addition & 0 deletions scripts/publish/latest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

for dir in `find packages -mindepth 1 -maxdepth 1 -type d | sort -nr`; do
git checkout master
cd $dir
echo $PWD
npm publish --tag latest
Expand Down
1 change: 1 addition & 0 deletions scripts/publish/next.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

for dir in `find packages -mindepth 1 -maxdepth 1 -type d | sort -nr`; do
git checkout develop
cd $dir
echo $PWD
npm publish --tag next
Expand Down
1 change: 1 addition & 0 deletions scripts/publish/rc.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

for dir in `find packages -mindepth 1 -maxdepth 1 -type d | sort -nr`; do
git checkout develop
cd $dir
echo $PWD
npm publish --tag rc
Expand Down