Skip to content

Commit

Permalink
拆分workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Feb 1, 2020
1 parent 54bd259 commit 13f71d1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Node.js CI
name: Release

on: [push]
on:
push:
tags:
- v*

jobs:
build:
Expand All @@ -9,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [12.x]

steps:
- uses: actions/checkout@v2
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Testing

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build

0 comments on commit 13f71d1

Please sign in to comment.