Skip to content

Commit 15b1ab0

Browse files
authored
chore: migrate to github actions (#12)
1 parent 52248e3 commit 15b1ab0

File tree

3 files changed

+44
-67
lines changed

3 files changed

+44
-67
lines changed

.circleci/config.yml

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

.github/workflows/cd.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CD
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish-npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: 16.x
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm ci
17+
- name: Publish
18+
run: npm publish --ignore-scripts --access public
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [10.x, 12.x, 14.x, 16.x]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Node.js version ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
cache: 'npm'
22+
23+
- run: npm install
24+
- run: npm run lint

0 commit comments

Comments
 (0)