Skip to content

Commit

Permalink
fix(ci): fix travis ci release job
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Mar 12, 2020
1 parent a8b7dd6 commit 348eb7c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ node_js:
- "8"
- "node"

before_script:
- export DEPS=$(node -e "const deps=require('./package.json').peerDependencies;console.log(Object.keys(deps).map(key=>key+'@'+deps[key]).join(' '));")
- npm install $DEPS

script:
- echo "Running tests against $(node -v) ..."
- export DEPS=$(node -e "const deps=require('./package.json').peerDependencies;console.log(Object.keys(deps).map(key=>key+'@'+deps[key]).join(' '));")
- npm install $DEPS
- npm run lint

jobs:
Expand Down Expand Up @@ -46,6 +44,7 @@ jobs:
- stage: github release
node_js: "10"
script: echo "Deploying to github release ..."
skip_cleanup: false
deploy:
provider: releases
token: $GITHUB_TOKEN
Expand Down

0 comments on commit 348eb7c

Please sign in to comment.