Skip to content

Commit ecb6d15

Browse files
committed
ci: Changing to gh actions instead of Travis
1 parent 8dbcce5 commit ecb6d15

File tree

2 files changed

+36
-30
lines changed

2 files changed

+36
-30
lines changed

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to npm
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
install:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
- run: |
20+
yarn install
21+
yarn test
22+
23+
publish-npm:
24+
needs: install
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v1
28+
- uses: actions/setup-node@v1
29+
with:
30+
node-version: 12
31+
registry-url: https://registry.npmjs.org/
32+
- run: npx semantic-release
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.travis.yml

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

0 commit comments

Comments
 (0)