-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.71 KB
/
builder.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
64
name: CI/CD Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'true'
token: ${{secrets.GITHUB_TOKEN}}
- name: Set up Git user info
run: |
git config --global user.email "[email protected]"
git config --global user.name "[email protected]"
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20.11.1'
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npm run lint
- name: Run prettier
run: npm run prettier
# - name: Run danger
# run: npm run danger
- name: Run renderDtype
run: npm run renderDtype
env:
MY_SECRET: ${{ secrets.ENV_DANNGER}}
# - name: Update submodule
# run: |
# git stash # Stash any changes
# git submodule update --init --recursive # Update and initialize submodule
# cd typeLib # Move into the submodule directory
# git stash # Stash any changes in the submodule
# git config --global user.email "[email protected]"
# git config --global user.name "[email protected]"
# git checkout main # Switch to the main branch of the submodule
# git pull origin main
# cd ..
# git add typeLib # Add submodule to index
# git commit -m "Update submodule"
# git push origin main # Push changes to the main branch of the submodule
- name: Build
run: npm run build