-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Carimus/fix/migrate-github-workflows
Migrate workflows to yaml syntax
- Loading branch information
Showing
2 changed files
with
23 additions
and
28 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |