Skip to content

Commit

Permalink
ci: set up continuous deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Oct 24, 2019
1 parent dcd22a1 commit 72e0771
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,23 @@ script:
- yarn test --coverage
after_success:
- npx codecov

deploy:
- provider: npm
edge:
branch: master
run_script: publish
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
node_js: lts/*
- provider: npm
edge:
branch: master
run_script: publish
registry: https://npm.pkg.github.com/@kripod
api_token: $GH_TOKEN
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
node_js: lts/*
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"format": "prettier --ignore-path .gitignore --write \"**/*.{ts,tsx,js,json,yml,md}\"",
"lint": "eslint --ignore-path .gitignore \"**/*.{ts,tsx,js}\"",
"postinstall": "lerna bootstrap",
"publish": "dotenv -- lerna publish from-package --contents pkg",
"publish": "lerna publish from-git --contents pkg --yes",
"release": "dotenv -- lerna version --create-release github",
"test": "jest",
"type-check": "tsc --noEmit"
},
Expand Down

0 comments on commit 72e0771

Please sign in to comment.