Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
熙乐 committed Apr 3, 2021
1 parent 6164bc6 commit 5c7a47d
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
language: node_js

os:
- linux

dist: xenial

node_js:
- "8.6.0"

install:
- npm install

script:
- npm run test
stages:
- test
- name: releaseNpm
if: branch = master

jobs:
include:
- stage: test
name: "Run test scripts"
script:
- npm run test

- stage: releaseNpm
name: "Release npm package"
node_js: "14"
script: echo "Release npm package..."
deploy:
provider: npm
email: [email protected]
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
branch: master

notifications:
email: false

0 comments on commit 5c7a47d

Please sign in to comment.