Skip to content

Commit

Permalink
ci(travis): add config file
Browse files Browse the repository at this point in the history
chore: improve commitlint file

fix(workit-cli): npm run test

Signed-off-by: Olivier Albertini <[email protected]>
  • Loading branch information
OlivierAlbertini committed Jun 23, 2019
1 parent c3e52b0 commit 83a63c5
Show file tree
Hide file tree
Showing 14 changed files with 605 additions and 83 deletions.
3 changes: 2 additions & 1 deletion .commitlintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ help: |
`refactor`: Rewrites code without feature, performance or bug changes.
`perf`: Improves performance.
`test`: Adds or modifies tests. (example scopes: functionals, unit-tests)
`revert`: Changes that reverting other changes
`revert`: Changes that reverting other changes
`chore`: (updating grunt tasks etc; no production code change)
4 changes: 4 additions & 0 deletions .npmrc.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
//registry.npmjs.org/:username=olivieralbertini
//registry.npmjs.org/:[email protected]
//registry.npmjs.org/:always-auth=true
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: node_js

node_js:
- "10"
- "11"

install:
- npm i
- npm run bootstrap
- npm run build # @TODO lerna bug will use symlink when depending on internal packages, but package is typescript, no lib before build

script:
- npm run test

after_success:
# - npm run coverage
- git remote set-url origin git@${GH_TOKEN}@github.com:${TRAVIS_REPO_SLUG}.git

git:
depth: 5

cache:
directories:
- node_modules

before_deploy:
- cp .npmrc.template ~/.npmrc

deploy:
provider: script
email: [email protected]
api_key: $NPM_AUTH_TOKEN
skip_cleanup: true
script: npx lerna publish --yes
on:
tags: true
branch: master
21 changes: 19 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,27 @@
],
"command": {
"publish": {
"message": "ci(release): publish %s"
"npmClient": "npm",
"registry": "https://registry.npmjs.org/",
"ignoreChanges": ["*.lock"],
"allowBranch": "master",
"message": "chore(release): publish"
},
"bootstrap": {
"npmClient": "npm"
}
},
"changelog": {
"repo": "VilledeMontreal/workit",
"labels": {
"enchancement": ":rocket:(Enhancement)",
"bug": ":bug:(Bug Fix)",
"doc": ":doc:(Refine Doc)",
"feat": ":sparkles:(Feature)"
},
"cacheDir": ".changelog"
},
"useWorkspaces": true,
"npmClient": "npm",
"version": "0.0.7-beta.0"
"version": "independent"
}
Loading

0 comments on commit 83a63c5

Please sign in to comment.