Skip to content

Commit b3cf1d1

Browse files
committed
CI with github actions
1 parent 1ab5f3a commit b3cf1d1

File tree

3 files changed

+46
-26
lines changed

3 files changed

+46
-26
lines changed

.github/workflows/nodejs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Node.js CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
node-version: [10, 12, 14]
11+
os: [ubuntu-latest, windows-latest, macOS-latest]
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Use Node.js ${{ matrix.node-version }}
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
- name: Install dependencies
19+
run: yarn install --frozen-lockfile
20+
- name: Tests and coverage
21+
run: yarn coverage
22+
- name: Build
23+
run: yarn build

.github/workflows/npmpublish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
npm-publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
registry-url: https://registry.npmjs.org/
16+
- name: Install dependencies
17+
run: yarn install --frozen-lockfile
18+
- name: Build
19+
run: yarn build
20+
- name: Npm publish
21+
run: npm publish --access public
22+
env:
23+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.travis.yml

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

0 commit comments

Comments
 (0)