1
0
Fork 0

更新 .gitea/workflows/build.yaml

This commit is contained in:
Hmtsai 2024-05-25 10:39:50 +08:00
parent e8d3f8f475
commit befba353cf
1 changed files with 3 additions and 12 deletions

View File

@ -25,21 +25,12 @@ jobs:
uses: http://git.hmtsai.cn/actions/checkout@v4
- name: Prepare node
run: |
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
echo $PATH
apt-get install nodejs npm
- name: Check node
run: |
export PATH=/node/bin:$PATH
ls study-area-home-action-deps
echo "------------"
ls .
echo "------------"
node -v
npm -v
echo NodeJS Version:`node -v`
echo NPM Version:`npm -v`
- name: Prepare NPM source
run: |
export PATH=/node/bin:$PATH