Skip to content

Commit

Permalink
Merge pull request #30 from eexit/fix-tag-release
Browse files Browse the repository at this point in the history
Fix NPM tag releasing
  • Loading branch information
eexit committed Mar 13, 2019
2 parents 1b61edb + 0fab532 commit e14790d
Showing 1 changed file with 27 additions and 20 deletions.
47 changes: 27 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
language: node_js
node_js:
- "8"
- "6"
- '8'
- '6'
addons:
code_climate:
repo_token: $CODE_CLIMATE_TOKEN
repo_token: "$CODE_CLIMATE_TOKEN"
branches:
only:
- master
- /^[0-9]+(\.[0-9]+)*((-staging|-beta|-alpha|-test)[0-9]*)?$/
- /^greenkeeper/.*$/
- "/^[0-9]+(\\.[0-9]+)*((-staging|-beta|-alpha|-test)[0-9]*)?$/"
- "/^greenkeeper/.*$/"
install:
- npm install --loglevel=error
- npm install --loglevel=error -g mocha greenkeeper-lockfile@1
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- npm install --loglevel=error
- npm install --loglevel=error -g mocha greenkeeper-lockfile@1
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
before_script:
- npm --silent run-script eslint
- ./cc-test-reporter before-build
- greenkeeper-lockfile-update
- npm --silent run-script eslint
- "./cc-test-reporter before-build"
- greenkeeper-lockfile-update
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- greenkeeper-lockfile-upload
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
on:
tags: true
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
- greenkeeper-lockfile-upload
jobs:
include:
- stage: npm release
if: tag IS present
script: skip
deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_API_KEY"
on:
tags: true
repo: eexit/ghost-storage-cloudinary

0 comments on commit e14790d

Please sign in to comment.