Skip to content

Commit

Permalink
fix(ci): migrate workflows to yaml syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bericp1 committed Jan 28, 2020
1 parent cc5b803 commit a779325
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/main.workflow

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI/CD
on: push

jobs:
test-and-release:
name: Test and Release
runs-on: ubuntu-latest
steps:
# Checkout the repo at the push ref
- uses: actions/checkout@v1
# Install deps
- name: Install
run: yarn
# Run tests
- name: Test
run: yarn test
# Attempt release if we're on master
- name: Release
if: github.ref == 'refs/heads/master'
run: yarn run release-ci
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a779325

Please sign in to comment.