Skip to content

Commit

Permalink
chore: add initial github cd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
john-u authored and rossiam committed Jul 13, 2020
1 parent 65a6bfb commit 9167cd8
Show file tree
Hide file tree
Showing 4 changed files with 8,803 additions and 2,940 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CD

on:
push:
branches:
- master

jobs:
release:
if: "!contains(github.event.head_commit.message, 'skip ci')"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.PI_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request]

jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"

runs-on: ubuntu-latest

Expand All @@ -13,12 +14,12 @@ jobs:
node-version: [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 ci
- run: npm run build
- run: npm run lint
- run: npm test
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm test
Loading

0 comments on commit 9167cd8

Please sign in to comment.