-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 1.09 KB
/
build.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: build
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: Install dependencies 📦
run: npm ci
- name: Lint 🧹
run: |
npm run lint
npm run ts-check
- name: Build 🔧
run: npm run build
- name: Test 🧪
run: npm run test:ci
- name: Coveralls 🎉
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docs 📖
run: npm run docs
- name: Clone V5 Docs 📖
run: |
cd docs
git clone --branch v5-gh-pages --single-branch --depth 1 https://github.com/crimx/value-enhancer.git v5
cd v5
rm -rf CNAME .nojekyll .git
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs