Skip to content

Commit

Permalink
Merge pull request #114 from jbrown1618/semantic-release
Browse files Browse the repository at this point in the history
feat: Add semantic-release
  • Loading branch information
jbrown1618 authored Jan 20, 2020
2 parents 055fab6 + ff60cd4 commit dfa52c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,8 @@ on:
- master

jobs:
verify:
name: Verify
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: |
npm install
npm run ci
env:
CI: true
release:
name: Release
needs: verify
runs-on: ubuntu-latest

Expand All @@ -34,12 +18,12 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install and build
run: |
npm install
npm run build
- name: Install, build, and verify
env:
CI: true
run: |
npm install
npm run ci
- name: Release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
name: CI

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

jobs:
build:
verify:
name: Verify
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Run checks
- name: Run Checks
env:
CI: true
run: |
npm install
npm run ci
env:
CI: true

0 comments on commit dfa52c1

Please sign in to comment.