Skip to content

Commit 91ec438

Browse files
Run typecheck on every commit
1 parent 0d595e7 commit 91ec438

2 files changed

Lines changed: 38 additions & 18 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
1-
name: Create Relase & Publish Package
2-
on:
3-
push:
4-
tags:
5-
- 'v*'
1+
name: Test
2+
3+
on: push
4+
65
jobs:
7-
build:
8-
runs-on: ubuntu-latest
6+
checks:
7+
runs-on: ubuntu-20.04
98
steps:
109
- uses: actions/checkout@v2
11-
- uses: actions/create-release@v1
12-
env:
13-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14-
with:
15-
tag_name: ${{ github.ref }}
16-
release_name: Release ${{ github.ref }}
17-
draft: false
18-
prerelease: false
1910
- uses: actions/setup-node@v1
2011
with:
2112
node-version: '16.x'
2213
registry-url: 'https://registry.npmjs.org'
14+
- uses: actions/cache@v2
15+
with:
16+
path: ~/.npm
17+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
2318
- run: npm ci
24-
- run: npm publish
25-
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
19+
- run: npm run lint
20+
- run: npm run typecheck
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Create Relase & Publish Package
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/create-release@v1
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
with:
15+
tag_name: ${{ github.ref }}
16+
release_name: Release ${{ github.ref }}
17+
draft: false
18+
prerelease: false
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: '16.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
- run: npm ci
24+
- run: npm publish
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)