Skip to content

Commit 7361ee7

Browse files
committed
Add github actions
1 parent b54dfe6 commit 7361ee7

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: main
3+
4+
on:
5+
- push
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '14.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm ci
17+
- name: Test noop IO
18+
run: npm test
19+
env:
20+
CURATOR_IO: noop
21+
CURATOR_PKG: noop
22+
- name: Test linux IO
23+
run: npm test
24+
env:
25+
CURATOR_IO: linux
26+
CURATOR_PKG: noop

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)