Skip to content

Commit b9a6d0b

Browse files
committed
ci: migrate to GitHub actions
1 parent f79ac5b commit b9a6d0b

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
FORCE_COLOR: 3
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: '14.x'
17+
- run: yarn
18+
- run: yarn run prettier-check
19+
- run: yarn run eslint
20+
- run: yarn run build
21+
- name: release
22+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
run: yarn run semantic-release

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)