Skip to content

Commit 5dd952e

Browse files
committed
ci: deploy beta versions on develop branch
1 parent 849cb28 commit 5dd952e

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.travis.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ cache:
1010
before_install:
1111
- curl -o- -L https://yarnpkg.com/install.sh | bash
1212
- export PATH="$HOME/.yarn/bin:$PATH"
13+
- curl -o $HOME/gpgkey.asc $GPG_KEY
14+
- gpg --import $HOME/gpgkey.asc
1315
- git config --global user.name 'JounQin'
1416
- git config --global user.email '[email protected]'
17+
- git config --global commit.gpgsign true
18+
- git config --global tag.gpgsign true
1519

1620
install: yarn --frozen-lockfile
1721

@@ -22,16 +26,20 @@ script:
2226
- yarn test
2327

2428
before_deploy:
25-
- set -e
2629
- npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
2730
- git remote set-url origin https://user:[email protected]/$TRAVIS_REPO_SLUG.git
2831
- git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH
2932
- git checkout $TRAVIS_BRANCH
3033
- yarn run lerna-changelog
3134

3235
deploy:
33-
provider: script
34-
skip_cleanup: true
35-
script: yarn run lerna publish --yes
36-
on:
37-
branch: master
36+
- provider: script
37+
skip_cleanup: true
38+
script: yarn run lerna publish --create-release github --yes
39+
on:
40+
branch: master
41+
- provider: script
42+
skip_cleanup: true
43+
script: yarn run lerna publish --canary --conventional-prerelease --preid beta --pre-dist-tag beta --yes
44+
on:
45+
branch: develop

lerna.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"useWorkspaces": true,
66
"changelog": {
77
"cacheDir": ".cache",
8-
"ignoreCommitters": ["*bot"]
8+
"ignoreCommitters": ["*bot"],
9+
"nextVersion": "Unreleased"
910
},
1011
"command": {
1112
"version": {
12-
"allowBranch": "master",
13+
"allowBranch": ["develop", "master"],
1314
"conventionalCommits": true,
14-
"createRelease": "github",
1515
"gitReset": false,
1616
"message": "chore(release): %s"
1717
}

0 commit comments

Comments
 (0)