From 5c7a47d74e622dbfc2bf472e9b90177c361fb436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=99=E4=B9=90?= Date: Sat, 3 Apr 2021 17:15:11 +0800 Subject: [PATCH] ci --- .travis.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3acc01c..098a7dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: 1558267774@qq.com + api_key: "$NPM_TOKEN" + skip_cleanup: true + on: + branch: master notifications: email: false