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