Skip to content

Commit

Permalink
Merge pull request #90 from kaimallea/travis-npm-publish
Browse files Browse the repository at this point in the history
build: use travisci to publish to npm automatically
  • Loading branch information
kaimallea authored Aug 11, 2019
2 parents 198d075 + d2e76e1 commit 8183a1a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.tsbuildinfo
.cache
coverage
26 changes: 22 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
language: node_js
node_js:
- "12"
cache: yarn
install:
- yarn
- '10'
- '12'
cache:
yarn: true
directories:
- node_modules
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
- export PATH="$HOME/.yarn/bin:$PATH"
script:
- yarn lint
- yarn test
- yarn build
jobs:
include:
- stage: release
node_js: lts/*
script: skip # do not run tests again
deploy:
provider: script
skip_cleanup: true
script:
- yarn release
on:
branch: master

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"name": "ismobilejs",
"publishConfig": {
"access": "public"
},
"version": "0.5.2",
"description": "A simple JS library that detects mobile devices.",
"keywords": [
Expand Down

0 comments on commit 8183a1a

Please sign in to comment.