Skip to content

Commit 8b60676

Browse files
Removed .travis.yml and added github actions (#265)
* removed .travis.yml and added github actions * Added new line to end of file * moved npm publish to its own yml file to execute on release
1 parent bb39f58 commit 8b60676

File tree

3 files changed

+47
-25
lines changed

3 files changed

+47
-25
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Node.js Build and Test
2+
3+
on:
4+
pull_request:
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
node-version: [14.x, 15.x]
13+
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Build Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: yarn install
22+
- run: yarn build
23+
- run: yarn test
24+
- run: yarn lint
25+
- run: yarn test-gen
26+
- run: yarn test-gen-env
27+
- run: yarn check

.github/workflows/npm.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy to NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Build Node.js 15.x
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: '15.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: npm install
18+
- run: npm publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.travis.yml

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

0 commit comments

Comments
 (0)