Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
Branch deploy (#189)
Browse files Browse the repository at this point in the history
* Remove master branch restiction on deploy script

* Add sign-off to release script

* update to deploy script
  • Loading branch information
mttrbrts authored May 25, 2018
1 parent a99de86 commit 9c6b0c5
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,6 @@ else
_exit "Unknown build focus" 1
fi

# Hold onto the version number
export VERSION=$(node -e "console.log(require('${DIR}/package.json').version)")

# Publish with tag
echo "Pushing with tag ${TAG}"
lerna exec -- npm publish --tag="${TAG}" 2>&1

# Check that all required modules have been published to npm and are retrievable
for j in ${NPM_MODULES}; do
# check the next in the list
while ! npm view ${j}@${VERSION} | grep dist-tags > /dev/null 2>&1; do
sleep 10
done
done

## Stable releases only; both latest and next then clean up git, and bump version number
if [[ "${BUILD_RELEASE}" = "stable" ]]; then

Expand All @@ -97,4 +82,21 @@ if [[ "${BUILD_RELEASE}" = "stable" ]]; then

fi

# Hold onto the version number
export VERSION=$(node -e "console.log(require('${DIR}/package.json').version)")

# Publish with tag
echo "Pushing with tag ${TAG}"
lerna exec -- npm publish --tag="${TAG}" 2>&1

# Check that all required modules have been published to npm and are retrievable
for j in ${NPM_MODULES}; do
# check the next in the list
while ! npm view ${j}@${VERSION} | grep dist-tags > /dev/null 2>&1; do
sleep 10
done
done



_exit "All complete" 0

0 comments on commit 9c6b0c5

Please sign in to comment.