Skip to content

Commit

Permalink
fix: travis ci node
Browse files Browse the repository at this point in the history
  • Loading branch information
Markkop committed Apr 23, 2020
1 parent 7dabfbd commit 946b17d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
- os: linux
dist: trusty
services: docker
language: generic
language: node_js
node_js: '10'

- os: windows
language: node_js
Expand All @@ -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:
Expand All @@ -48,5 +49,6 @@ deploy:
- 'dist/*.AppImage'
- 'dist/*.exe'
overwrite: true
skip_cleanup: true
on:
all_branches: true
branch: 'fix/release'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 946b17d

Please sign in to comment.