Skip to content

Commit

Permalink
Merge pull request #26 from lifeomic/no-more-travis
Browse files Browse the repository at this point in the history
Use github actions rather than travis ci
  • Loading branch information
Anthony Roach authored Oct 23, 2020
2 parents 398435f + 0e5262c commit 3dc5c58
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 24 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pr-branch-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR Branch Build and Test

on:
push:
branches-ignore:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Build and Test
run: |
yarn
yarn test
yarn build
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Exit if not on master branch
if: endsWith(github.ref, 'master') == false
run: exit 0
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: Build and Test
run: |
yarn
yarn test
yarn build
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.LIFEOMIC_NPM_TOKEN}}
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

0 comments on commit 3dc5c58

Please sign in to comment.