From 3955f619584b3eeb1976fe60bca881a40513972b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 30 Jan 2021 15:29:41 +0100 Subject: [PATCH] jobs tweaks, run build --- .github/workflows/ci.yml | 8 +++++--- electron-builder.json | 3 ++- package.json | 5 +++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cdced38..894aabc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ on: jobs: test: runs-on: ${{ matrix.os }} + fail-fast: false strategy: matrix: @@ -23,8 +24,9 @@ jobs: with: node-version: ${{ matrix.node }} - - run: npm i + - run: npm ci - run: npm test + - run: npm run build coverage: needs: [test] @@ -33,8 +35,8 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - - run: npm i - - uses: paambaati/codeclimate-action@v2.2.4 + - run: npm ci + - uses: paambaati/codeclimate-action@v2.7.5 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} with: diff --git a/electron-builder.json b/electron-builder.json index 00cc233..58c6f7e 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -12,5 +12,6 @@ "category": "Office", "executableName": "Blowfish", "artifactName": "${productName}-${version}.${ext}" - } + }, + "publish": false } diff --git a/package.json b/package.json index ed305d1..e613257 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "main": "app/background.js", "scripts": { "start": "nextron", - "build": "nextron build --all", + "build": "nextron build", + "build:all": "nextron build --all", "postinstall": "electron-builder install-app-deps", "test": "npm run lint && npm run jest", "test:watch": "npm run jest -- --watch", @@ -74,7 +75,7 @@ "hooks": { "after:init": "npm test", "after:bump": "npm run changelog", - "before:release": "npm run build" + "before:release": "npm run build:all" }, "git": { "tagName": "v${version}"