-
Notifications
You must be signed in to change notification settings - Fork 596
32 lines (26 loc) · 740 Bytes
/
Copy pathmain.yml
File metadata and controls
32 lines (26 loc) · 740 Bytes
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
name: Node.js CI
on:
push:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.17.0
# Runs a single command using the runners shell
- name: setup git config
run: |
git config user.name "Sadanand Pai"
git config user.email "sadypai@gmail.com"
- name: NPM installation
run: npm ci
- name: setup deployment
run: |
npm run unit:test
npm run build
npm run copy-to-docs
git add docs -f
git diff --staged --quiet || (git commit -m "build files - github action" --no-verify && git push)