Skip to content

Commit 2eaed53

Browse files
authored
Add CI workflow for build process
1 parent 6e8d82f commit 2eaed53

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
push:
3+
paths-ignore:
4+
- ".devcontainer/**"
5+
- ".github/README.md"
6+
- ".gitignore"
7+
- "LICENSE"
8+
- "network/**"
9+
- "server/**"
10+
11+
jobs:
12+
ci:
13+
defaults:
14+
run:
15+
working-directory: docs
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
deployments: write
20+
statuses: write
21+
name: Build Test
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
- uses: actions/cache@v3
30+
id: node_modules_cache_id
31+
env:
32+
cache-name: cache-node-modules
33+
with:
34+
path: '**/node_modules'
35+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
36+
- run: echo '${{ toJSON(steps.node_modules_cache_id.outputs) }}'
37+
- if: ${{ steps.node_modules_cache_id.outputs.cache-hit != 'true' }}
38+
run: npm install
39+
- name: Build
40+
run: npm run build
41+

0 commit comments

Comments
 (0)