ci(fix): 修改ci使用的action为node10

This commit is contained in:
ibuler
2020-07-08 11:59:18 +08:00
committed by 老广
parent a036562e5c
commit 00e2e7e433
2 changed files with 5 additions and 4 deletions

View File

@@ -34,12 +34,12 @@ jobs:
build-and-release: build-and-release:
needs: create-realese needs: create-realese
name: Build and Release Matrix name: Build and Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build it and upload - name: Build it and upload
uses: jumpserver/action-build-upload-assets@master uses: jumpserver/action-build-upload-assets@node10
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:

View File

@@ -21,9 +21,10 @@ if [[ -n ${VERSION} ]]; then
fi fi
# 下载依赖模块并构建 # 下载依赖模块并构建
cd "${project_dir}" && yarn || exit 3 cd "${project_dir}" || exit 3
yarn || exit 4
rm -rf lina dist rm -rf lina dist
yarn build:prod || exit 4 yarn build:prod || exit 5
# 打包 # 打包
rm -rf "${release_dir:?}"/* rm -rf "${release_dir:?}"/*