main
This commit is contained in:
parent
f22be971a5
commit
3d404dc6ab
@ -21,25 +21,25 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: https://gitea.cn/actions/checkout@v1
|
||||
uses: https://gitea.cn/actions/checkout@main
|
||||
|
||||
- name: change npm registry mirror
|
||||
run: npm config set registry https://registry.npmmirror.com
|
||||
|
||||
### https://github.com/pnpm/action-setup
|
||||
- name: Set up Node.js
|
||||
uses: https://shanshanzhong147@gmail.com:shanshanzhong147@git.kxsw.us/actions/action-setup@v1
|
||||
uses: https://shanshanzhong147@gmail.com:shanshanzhong147@git.kxsw.us/actions/action-setup@main
|
||||
with:
|
||||
version: 9.15.9
|
||||
run_install: false
|
||||
|
||||
- id: tool-cache
|
||||
uses: https://shanshanzhong147@gmail.com:shanshanzhong147@git.kxsw.us/actions/gitea-tool-cache@v1
|
||||
uses: https://shanshanzhong147@gmail.com:shanshanzhong147@git.kxsw.us/actions/gitea-tool-cache@main
|
||||
with:
|
||||
# 只有node支持版本号别名
|
||||
node-version: lts
|
||||
|
||||
- uses: https://gitea.cn/actions/setup-node@v1
|
||||
- uses: https://gitea.cn/actions/setup-node@main
|
||||
with:
|
||||
# gitea-tool-cache导出 node 具体版本
|
||||
node-version: ${{ steps.tool-cache.outputs.node-version }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user