-
Notifications
You must be signed in to change notification settings - Fork 119
63 lines (49 loc) Β· 1.29 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
push:
branches:
- v1
jobs:
build:
name: ποΈ Install and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn install
- run: yarn build
- run: yarn lint
docs:
name: π Generate and deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn install
- run: yarn build
- run: yarn lint
- run: yarn docs --gaID ${{ secrets.GA_ID }}
- name: Deploy π
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
publish:
name: π¦ Publish package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn build
- run: yarn lint
- run: yarn publish --access public --tag 1.x.x
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}