From 946b17dbb1093fcf55b9b2bd52f6439088436ea5 Mon Sep 17 00:00:00 2001 From: Mark Kop Date: Thu, 23 Apr 2020 16:41:39 -0300 Subject: [PATCH] fix: travis ci node --- .travis.yml | 10 ++++++---- package.json | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 995785e..5a70179 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,8 @@ jobs: - os: linux dist: trusty services: docker - language: generic + language: node_js + node_js: '10' - os: windows language: node_js @@ -35,9 +36,9 @@ script: -v ~/.cache/electron:/root/.cache/electron \ -v ~/.cache/electron-builder:/root/.cache/electron-builder \ electronuserland/builder:wine \ - /bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn dist:linux" + /bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn release:linux" else - yarn dist:win + yarn release:win fi deploy: @@ -48,5 +49,6 @@ deploy: - 'dist/*.AppImage' - 'dist/*.exe' overwrite: true + skip_cleanup: true on: - all_branches: true + branch: 'fix/release' diff --git a/package.json b/package.json index f0873c2..ad1a2b0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "dist:win": "electron-builder build --win portable ", "dist": "electron-builder build --win portable --linux AppImage ", "build": "babel src --out-dir build", - "release": "yarn build && electron-builder" + "release:linux": "yarn build && electron-builder --linux AppImage -p onTagOrDraft", + "release:win": "yarn build && electron-builder --win portable -p onTagOrDraft" }, "keywords": [], "author": "Marcelo 'Mark' Kopmann",