forked from mdx-js/eslint-mdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (44 loc) · 1.44 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: node_js
node_js: --lts
cache:
- yarn
- directories:
- .changelog
env: EFF_NO_LINK_RULES=true PARSER_NO_WATCH=true
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
- git config --global user.name "JounQin"
- git config --global user.email "[email protected]"
install: yarn --frozen-lockfile
script:
- yarn test
- yarn lint
after_success:
- yarn global add codecov codacy-coverage
- codecov
- cat ./coverage/lcov.info | codacy-coverage
before_deploy:
- npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
- git remote set-url origin https://user:[email protected]/$TRAVIS_REPO_SLUG.git
- git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH
- git checkout $TRAVIS_BRANCH
- cp -f README.md packages/eslint-mdx
- cp -f README.md packages/eslint-plugin-mdx
- 'git add --all && git commit -m "docs: update README" || echo "nothing changed to commit"'
- yarn global add lerna-changelog
- lerna-changelog
deploy:
# - provider: script
# skip_cleanup: true
# script: yarn lerna publish --create-release github --yes
# on:
# branch: master
- provider: script
skip_cleanup: true
script: yarn lerna publish --canary --conventional-prerelease --force-publish --preid beta --pre-dist-tag beta --yes
on:
branch: develop
after_script:
- yarn add -D @codechecks/client @codechecks/build-size-watcher typecov -W
- yarn codechecks