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

chore(lerna.json, package.json, .travis.yml): add lerna version config #62

Merged
merged 1 commit into from
Mar 13, 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
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ cache:

before_install:
- npm install --global yarn@1.10.1
before_script:
- yarn bootstrap

script:
- yarn build
Expand All @@ -19,7 +17,7 @@ script:
before_deploy:
- echo "access=public" >> $HOME/.npmrc 2> /dev/null
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null

deploy:
- provider: script
skip_cleanup: true
Expand All @@ -33,3 +31,5 @@ deploy:
- echo "RELEASING STABLE"
on:
branch: master

# add post deploy to add git commit message and add tag
18 changes: 16 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,27 @@
"publishConfig": {
"access": "public"
},
"ignoreChanges": [
"*.md",
"*.test.*",
"example/**",
"**/__test__/**"
],
"command": {
"version": {
"exact": true
"exact": true,
"allowBranch": ["master", "canary"],
"forcePublish": true,
"githubRelease": true,
"conventionalCommits": true,
"noChangelog": true,
"noCommitHokos": true,
"message": "chore(release): publish %s",
"preid": "canary",
"yes": true
},
"publish": {
"npmClient": "npm",
"message": "chore(package.json): release",
"allowBranch": [
"master",
"canary"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"test:cov": "jest --config ./setup-test/jest.config.js --coverage --coverageReporters=text-lcov | coveralls",
"build:test": "yarn build && yarn test",
"publish:prepublish": "lerna run prepublish",
"publish:canary": "lerna publish --no-git-reset --canary --preid canary --dist-tag next --yes --force-publish"
"publish:canary": "lerna publish --no-git-reset --canary --dist-tag next"
},
"husky": {
"hooks": {
Expand Down