fix: ci and tootip portal

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-08-23 17:42:07 +08:00
parent ecef3e961a
commit 37299173c8
3 changed files with 26 additions and 11 deletions
+12 -1
View File
@@ -11,6 +11,10 @@ on:
tag_version:
description: "Tag Version"
required: true
# https://docs.github.com/en/enterprise-cloud@latest/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
VITE_WEB_URL: ${{ vars.VITE_WEB_URL }}
VITE_API_URL: ${{ vars.VITE_API_URL }}
@@ -28,11 +32,18 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
- name: Check out Git repository Fully
uses: actions/checkout@v4
if: github.event.inputs.tag_version != '' || github.ref_type == 'tag'
with:
fetch-depth: 0
lfs: true
- name: Check out Git repository
uses: actions/checkout@v4
if: github.event.inputs.tag_version == '' && github.ref_type != 'tag'
with:
fetch-depth: 1
lfs: true
- name: Cache pnpm modules
uses: actions/cache@v4
+3 -1
View File
@@ -4,7 +4,9 @@ on:
branches: [main]
name: CI Typecheck and Lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Lint and Typecheck