Skip to content

Commit

Permalink
chore: split the build release process
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Sep 8, 2019
1 parent 8ad2aac commit fff490f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ node_js: "10.16.0"
matrix:
include:
- os: osx
env: npm_lifecycle_event=release
osx_image: xcode8.3
- os: linux
dist: trusty
env: CC=clang CXX=clang++ npm_config_clang=1 npm_lifecycle_event=release
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
- os: windows
env: npm_lifecycle_event=release
cache:
directories:
- node_modules
Expand Down Expand Up @@ -43,6 +41,7 @@ script:
#- xvfb-maybe node_modules/.bin/karma start test/unit/karma.conf.js
#- yarn run pack && xvfb-maybe node_modules/.bin/mocha test/e2e
- npm run build
- npm run release
branches:
only:
- master
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"url": "https://github.com/voxelum/voxelauncher.git"
},
"scripts": {
"build": "node scripts/build.js && electron-builder",
"build:dir": "node scripts/build.js && electron-builder --dir",
"build": "node scripts/build.js",
"build:clean": "cross-env BUILD_TARGET=clean node scripts/build.js",
"build:locale": "node scripts/build-locale.js",
"build:schema": "node scripts/build-schema.js",
Expand All @@ -23,7 +22,8 @@
"lint": "eslint --ext .js,.vue src",
"lint:fix": "eslint --ext .js,.vue --fix src",
"test": "mocha test/e2e",
"release": "standard-version",
"release": "electron-builder",
"version": "standard-version",
"install:native": "cross-env npm_config_runtime=electron electron-builder install-app-deps",
"postinstall": "npm run install:native"
},
Expand Down Expand Up @@ -199,4 +199,4 @@
"webpack-dev-server": "^3.2.1",
"webpack-hot-middleware": "^2.22.2"
}
}
}

0 comments on commit fff490f

Please sign in to comment.