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-06 13:36:55 +08:00
|
|
|
steps:
|
|
|
|
- run: ls -lR
|
2024-08-05 19:31:27 +08:00
|
|
|
- name: Check out repository code
|
2024-08-06 13:36:55 +08:00
|
|
|
uses: https://gitea.com/actions/checkout@v3
|
2024-08-05 19:50:06 +08:00
|
|
|
- run: ls -lR
|
2024-08-06 13:36:55 +08:00
|
|
|
- name: Use Node.js 1
|
|
|
|
uses: https://gitea.com/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 14:14:54 +08:00
|
|
|
|
2024-08-06 13:36:55 +08:00
|
|
|
- run: yarn config get registry
|
|
|
|
- run: npm config get registry
|
2024-08-06 14:14:54 +08:00
|
|
|
- run: yarn config set registry https://registry.npm.taobao.org
|
2024-08-06 13:36:55 +08:00
|
|
|
- run: npm config set registry https://registry.npm.taobao.org
|
|
|
|
- run: yarn cache clean
|
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-06 13:36:55 +08:00
|
|
|
run: yarn
|
2024-08-05 18:35:44 +08:00
|
|
|
- name: Build Docusaurus website
|
|
|
|
run: yarn build
|