1
0
Fork 0

更新 .gitea/workflows/build.yaml

This commit is contained in:
cxykevin 2024-05-24 22:44:36 +08:00
parent 743796af01
commit f53ba43a66
1 changed files with 8 additions and 4 deletions

View File

@ -28,24 +28,28 @@ jobs:
git clone https://git.hmtsai.cn/cxykevin/study-area-home-action-deps
mv study-area-home-action-deps/node-$(uname -m).tar.xz study-area-home-action-deps/node.tar.xz
tar xvJf study-area-home-action-deps/node.tar.xz
mv node-*-linux-* node
export PATH=./node/bin:$PATH:./node/bin
mv node-*-linux-* /node
export PATH=/node:$PATH
- name: Check node
run: |
export PATH=/node:$PATH
ls study-area-home-action-deps
echo "------------"
ls .
echo "------------"
./node/bin/node -v
./node/bin/npm -v
node -v
npm -v
- name: Prepare NPM source
run: |
export PATH=/node:$PATH
npm config set registry https://registry.npmmirror.com
- name: npm install
run: |
export PATH=/node:$PATH
npm install
- name: Build
run: |
export PATH=/node:$PATH
npm run build
# - name: Add permission
# run: chmod +x study-area-action-deps/mdbook-linux-$(uname -m)