更新 .gitea/workflows/build.yaml
This commit is contained in:
parent
e8d3f8f475
commit
befba353cf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue