Skip to content

Commit 1095477

Browse files
committed
chore(deploy) Enable alpha/beta release
Signed-off-by: Jerome Simeon <[email protected]>
1 parent 364eb13 commit 1095477

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

.travis/base.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function _exit(){
2727
function _abortBuild(){
2828
echo "ABORT_BUILD=true" > ${DIR}/build.cfg
2929
echo "ABORT_CODE=$1" >> ${DIR}/build.cfg
30-
echo "BUILD_FOCUS=${BUILD_FOCUS}" >> ${DIR}/build.cfg
3130
echo "BUILD_RELEASE=${BUILD_RELEASE}" >> ${DIR}/build.cfg
3231
}
3332

@@ -37,21 +36,19 @@ if [ ! -f ${DIR}/build.cfg ]; then
3736
echo "ABORT_BUILD=false" > ${DIR}/build.cfg
3837
echo "ABORT_CODE=0" >> ${DIR}/build.cfg
3938
## determine the build type here
40-
if [ -z "${TRAVIS_TAG}" ]; then
39+
if [[ -z "${TRAVIS_TAG}" ]]; then
4140
BUILD_RELEASE="unstable"
42-
BUILD_FOCUS="latest"
41+
elif [[ "${TRAVIS_TAG}" == *"-alpha"* ]] || [[ "${TRAVIS_TAG}" == *"-beta"* ]]; then
42+
BUILD_RELEASE="alpha"
4343
else
4444
BUILD_RELEASE="stable"
45-
BUILD_FOCUS="latest"
4645
fi
4746

48-
echo "BUILD_FOCUS=${BUILD_FOCUS}" >> ${DIR}/build.cfg
4947
echo "BUILD_RELEASE=${BUILD_RELEASE}" >> ${DIR}/build.cfg
5048
fi
5149

5250
source ${DIR}/build.cfg
5351

54-
echo "--I-- Build focus is ${BUILD_FOCUS}"
5552
echo "--I-- Build release is ${BUILD_RELEASE}"
5653

5754
if [ "${ABORT_BUILD}" == "true" ]; then

.travis/deploy.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,16 @@ if [[ "${BUILD_RELEASE}" == "unstable" ]]; then
5555
npm run pkgstamp
5656

5757
TAG="unstable"
58-
elif [[ "${BUILD_RELEASE}" == "stable" ]]; then
58+
elif [[ "${BUILD_RELEASE}" == "alpha" ]]; then
59+
TAG="unstable"
60+
elif [[ "${BUILD_RELEASE}" == "stable" ]]; then
5961
TAG="latest"
60-
else
61-
_exit "Unknown build focus" 1
62+
else
63+
_exit "Unknown build release" 1
6264
fi
6365

64-
## Stable releases only; both latest and next then clean up git, and bump version number
65-
if [[ "${BUILD_RELEASE}" = "stable" ]]; then
66+
## Stable or alpha/beta releases only; both latest and next then clean up git, and bump version number
67+
if [[ "${BUILD_RELEASE}" = "stable" ]] || [[ "${BUILD_RELEASE}" = "alpha" ]]; then
6668

6769
# Configure the Git repository and clean any untracked and unignored build files.
6870
git config user.name "${GH_USER_NAME}"
@@ -87,7 +89,7 @@ export VERSION=$(node -e "console.log(require('${DIR}/package.json').version)")
8789

8890
# Publish with tag
8991
echo "Pushing with tag ${TAG}"
90-
lerna exec -- npm publish --tag="${TAG}" 2>&1
92+
lerna exec -- npm publish --access public --tag="${TAG}" 2>&1
9193

9294
# Check that all required modules have been published to npm and are retrievable
9395
for j in ${NPM_MODULES}; do
@@ -99,4 +101,4 @@ done
99101

100102

101103

102-
_exit "All complete" 0
104+
_exit "All complete" 0

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,15 @@ npm install -g @accordproject/concerto-cli
5858

5959
To install for development, in the project directory, you can run:
6060

61-
#### `npm run build`
61+
```
62+
npm run build
63+
```
6264

6365
Invokes _lerna_ to build all the `markdown-*` packages.
6466

65-
#### `npm run test`
67+
```
68+
npm run test
69+
```
6670

6771
Invokes _lerna_ to run the test suite.
6872

@@ -96,7 +100,6 @@ Accord Project is an open source, non-profit, initiative working to transform co
96100

97101
### Ecosystem
98102

99-
100103
#### Core libraries:
101104
<table>
102105
<tr>

0 commit comments

Comments
 (0)