From a8b06cf0514978ac63e9c4f29ff76c9ae2704dcc Mon Sep 17 00:00:00 2001 From: cxykevin Date: Fri, 24 May 2024 22:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/build.yam?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 574ee45..198430a 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -29,10 +29,11 @@ jobs: 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:$PATH + export PATH=/node/bin:$PATH + echo $PATH - name: Check node run: | - export PATH=/node:$PATH + export PATH=/node/bin:$PATH ls study-area-home-action-deps echo "------------" ls . @@ -41,16 +42,16 @@ jobs: npm -v - name: Prepare NPM source run: | - export PATH=/node:$PATH - npm config set registry https://registry.npmmirror.com + export PATH=/node/bin:$PATH + npm config set registry https://registry.npmmirror.com - name: npm install run: | - export PATH=/node:$PATH - npm install + export PATH=/node/bin:$PATH + npm install - name: Build run: | - export PATH=/node:$PATH - npm run build + export PATH=/node/bin:$PATH + npm run build # - name: Add permission # run: chmod +x study-area-action-deps/mdbook-linux-$(uname -m) # - name: Build mdbook