Skip to content

Commit

Permalink
ci (#8)
Browse files Browse the repository at this point in the history
* ci: replace travis with github actions

* fix: add yarn to ci steps

* fix: update buld & deploy triggers
  • Loading branch information
H-Richard authored Jan 20, 2022
1 parent 731a5f8 commit a857fdf
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 20 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build

on:
workflow_run:
workflows: [Lint]
types: [completed]

jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn
- run: yarn build:esm && yarn build:cjs
- run: yarn semantic-release
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy

on:
workflow_run:
workflows: [Build]
types: [completed]
branches: ["main"]

jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn
- run: yarn build:esm && yarn build:cjs
- run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint

on:
push:
pull_request:
branches: ["**"]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn
- run: yarn run lint
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit a857fdf

Please sign in to comment.