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
|
2024-08-05 20:50:13 +08:00
|
|
|
uses: actions/checkout@v3
|
2024-08-05 19:50:06 +08:00
|
|
|
- run: ls -lR
|
2024-08-05 20:07:24 +08:00
|
|
|
- name: Use Node.js
|
2024-08-05 20:50:13 +08:00
|
|
|
uses: actions/setup-node@v4
|
2024-08-05 18:35:44 +08:00
|
|
|
with:
|
2024-08-06 07:56:57 +08:00
|
|
|
node-version: '20'
|
2024-08-06 08:01:45 +08:00
|
|
|
- run: npm install -g yarn
|
2024-08-06 07:58:29 +08:00
|
|
|
- run: ls -lR /var/run/act/workflow
|
2024-08-05 20:07:24 +08:00
|
|
|
- name: Install dependencies
|
2024-08-05 20:11:58 +08:00
|
|
|
run: yarn --frozen-lockfile
|
2024-08-05 18:35:44 +08:00
|
|
|
- name: Build Docusaurus website
|
|
|
|
run: yarn build
|