Skip to content

Commit

Permalink
Init GitHub Actions 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
Limon Monte committed Nov 7, 2019
1 parent 77edc5f commit a69c599
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on:
push:
branches:
- master
pull_request:

jobs:
build:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Install npm dependencies
run: yarn install

- name: Run tests
run: yarn test

- name: Run automated release process with semantic-release
if: github.event_name == 'push' && contains(github.ref, 'master')
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release

skip:
if: "contains(github.event.commits[0].message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- name: skip ci
run: echo "skip ci"

0 comments on commit a69c599

Please sign in to comment.