Skip to content

Commit eeb25fc

Browse files
author
Shailendra Gupta
committed
added action
1 parent 329e061 commit eeb25fc

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/app.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: '10.x'
19+
- name: Install dependencies
20+
run: |
21+
yarn
22+
- name: Lint
23+
run: |
24+
yarn lint
25+
- name: Check formatting
26+
run: |
27+
yarn format:check
28+
- name: Check build
29+
run: |
30+
yarn build

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"build:esm": "tsc -p . -m ESNext --outDir esm",
1313
"build:cjs": "tsc -p . -m CommonJS --outDir lib",
1414
"build:dist": "rollup -c",
15+
"build:docs": "rm -rf docs && typedoc --name Flash src",
16+
"lint": "eslint src/**/*.ts",
17+
"format:check": "prettier --check src/**/*.ts",
1518
"clean": "rm -rf lib/ && rm -rf esm/ && rm -rf dist"
1619
},
1720
"dependencies": {

0 commit comments

Comments
 (0)