Skip to content

Commit aea4fd1

Browse files
committed
Add CI workflows
1 parent 2cf7e92 commit aea4fd1

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
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: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'v*'
8+
pull_request: {}
9+
10+
env:
11+
PNPM_VERSION: 6.19.0
12+
13+
jobs:
14+
lint:
15+
name: Linting
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: pnpm/action-setup@v2.0.1
20+
with:
21+
version: ${{ env.PNPM_VERSION }}
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: 14.x
25+
cache: pnpm
26+
- run: pnpm install
27+
- run: pnpm run lint

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)