tomobridge-sdk
Version:
JS SDK for TomoBridge
48 lines (44 loc) • 1.21 kB
YAML
sudo: required
language: node_js
node_js:
- "10"
- "12"
jobs:
include:
- stage: Lint
script: npm run lint
- stage: Audit
script: npm audit --production
- stage: Npm release
node_js: "10"
script:
- echo "Deploying to npm ..."
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_API_KEY
on:
tags: true
- stage: Github release
before_install:
- npm install -g nexe@3.3.2
script:
- nexe -i bridge-cli -t linux-x64 -o bridge-cli.$TRAVIS_TAG.linux-x64 -r ./
- nexe -i bridge-cli -t win32-x64-6.11.2 -o bridge-cli.$TRAVIS_TAG.win-x64.exe -r ./
deploy:
provider: releases
api_key: $GH_TOKEN
skip_cleanup: true
overwrite: true
file:
- bridge-cli.$TRAVIS_TAG.linux-x64
- bridge-cli.$TRAVIS_TAG.win-x64.exe
on:
tags: true
stages:
- name: Lint
- name: Test
- name: Npm release
if: type != pull_request AND branch =~ ^v AND tag IS present AND repo = tomochain/bridgejs
- name: Github release
if: type != pull_request AND branch =~ ^v AND tag IS present AND repo = tomochain/bridgejs