-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 1.22 KB
/
action.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
name: Deploy Package
on:
push:
branches: [release]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Select Node Version
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Deps
run: yarn install
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Generate Coverage
run: yarn cc
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Release Package
run: yarn build-package
- name: Publish To NPM
run: yarn publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Doc Dependencies
run: cd docs-site && yarn install
- name: Generate Documentation
run: rm -rf ./docs && yarn docs
- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs
cname: iso-fns.org