-
Notifications
You must be signed in to change notification settings - Fork 14
51 lines (39 loc) · 1.3 KB
/
actions.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
name: 'lib-workflow'
on:
push:
branches: ['**']
workflow_dispatch:
jobs:
build-test-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- name: Install main dependencies
run: npm install
- name: Install lib dependencies
run: npm install --prefix ./projects/ngx-tippy-wrapper
- name: Run unit-tests and generate test coverage
run: npm run unit-tests:lib-coverage
- name: Upload coverage report to codecov
run: npm run unit-tests:lib-codecov
- name: Build lib npm package
run: npm run package
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: lib-npm-package
path: dist/ngx-tippy-wrapper/ngx-tippy-wrapper-**.tgz
- name: Install lib to demo app
run: npm install dist/ngx-tippy-wrapper/ngx-tippy-wrapper-**.tgz
- name: Build demo app in production mode
run: npm run build:demo
- name: Deploy demo app to gh-pages
if: ${{ github.ref == 'refs/heads/master' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist/ngx-tippy-demo