Skip to content

Commit

Permalink
Merge pull request #48 from 0916dhkim/auto-release
Browse files Browse the repository at this point in the history
Release From CI
  • Loading branch information
0916dhkim committed Mar 14, 2020
2 parents 735a12e + b6e511f commit fb3ba68
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Node.js CI
on: [push]

jobs:
build:
name: Build
test:
name: Test

strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest]
node-version: [12.x, 13.x]
mode: [production, development]

Expand All @@ -25,6 +25,23 @@ jobs:
- run: npm ci --no-optional
env:
NODE_ENV: development
- run: npm run dist
- run: npm run lint
- run: npm test
release:
if: github.ref == 'refs/heads/master'
needs: test
name: Release ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci --no-optional
- run: npm run dist
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "bookery",
"version": "0.0.3",
"version": "0.9.0-alpha",
"description": "======= Bookery =======",
"main": "dist/main/main.js",
"scripts": {
"test": "mocha",
"lint": "eslint --ext=js,jsx,ts,tsx .",
"dev": "electron-webpack dev",
"compile": "electron-webpack",
"dist": "npm run compile && electron-builder"
"dist": "npm run compile && electron-builder --publish onTagOrDraft"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit fb3ba68

Please sign in to comment.