2024-08-05 17:16:44 +08:00
|
|
|
name: Node.js CI
|
2024-07-31 10:55:19 +08:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2024-08-05 18:35:44 +08:00
|
|
|
build:
|
2024-08-05 19:18:33 +08:00
|
|
|
steps:
|
2024-08-05 19:31:27 +08:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: https://gitea.com/actions/checkout@v3
|
2024-08-05 19:50:06 +08:00
|
|
|
- run: ls -lR
|
2024-08-05 18:35:44 +08:00
|
|
|
- name: Use gitea Node.js
|
|
|
|
uses: https://gitea.com/actions/setup-node@v4
|
|
|
|
with:
|
2024-08-05 19:33:34 +08:00
|
|
|
node-version: '18.4.0'
|
2024-08-05 19:54:17 +08:00
|
|
|
- name: Install Yarn
|
|
|
|
run: npm install -g yarn
|
2024-08-05 18:35:44 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn install
|
|
|
|
- name: Build Docusaurus website
|
|
|
|
run: yarn build
|