Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Commit

Permalink
Fix workflow for build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
Electroid committed Aug 20, 2019
1 parent ff8be0a commit 076bb87
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
node_version: [8, 10, 12]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
version: ${{matrix.node_version}}
- run: npm ci
- run: npm test
19 changes: 5 additions & 14 deletions .github/workflows/publish.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
name: Release

on:
push:
branches:
- master
release:
tags:
- published

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test

publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand Down

0 comments on commit 076bb87

Please sign in to comment.