Skip to content

Commit 6da0ad1

Browse files
authored
Merge pull request #15 from adgorithmics-inc/0.0.4
0.0.4 -> master
2 parents 9969bcd + d8e9e17 commit 6da0ad1

10 files changed

+968
-199
lines changed

.circleci/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,16 @@ jobs:
4040
fingerprints:
4141
- 'ba:c3:f4:48:21:3a:c5:6b:b2:d9:06:e8:bc:ba:7b:e3'
4242

43+
- run:
44+
name: Set branch environemnt variable
45+
command: |
46+
echo '(echo "$CIRCLE_TAG" | grep -Eq ^.*-rc.*$) && export BRANCH=$(echo "$CIRCLE_TAG" | sed "s/^v//" | sed "s/-rc.*//") || export BRANCH="master"' >> $BASH_ENV
47+
source $BASH_ENV
4348
- run: npm version --no-git-tag-version ${CIRCLE_TAG}
4449
- run: git add package.json package-lock.json
4550
- run: git commit -m "Automatic NPM version bump ${CIRCLE_TAG}"
4651
- run: git checkout -b temp
47-
- run: git push origin temp:master
52+
- run: git push origin temp:$BRANCH
4853
- run: npm publish
4954

5055
publish-hot:

0 commit comments

Comments
 (0)