From b9d759acd82e6ec391c1fa7e1f542462221d549a Mon Sep 17 00:00:00 2001 From: ileostar Date: Sun, 21 Jan 2024 13:26:31 +0800 Subject: [PATCH] :rocket: (deploy admin) --- apps/admin/.github/PULL_REQUEST_TEMPLATE.md | 11 -------- apps/admin/.github/workflows/linter.yml | 30 --------------------- apps/admin/.github/workflows/release.yml | 25 ----------------- apps/admin/vercel.json | 20 +++----------- 4 files changed, 3 insertions(+), 83 deletions(-) delete mode 100644 apps/admin/.github/PULL_REQUEST_TEMPLATE.md delete mode 100644 apps/admin/.github/workflows/linter.yml delete mode 100644 apps/admin/.github/workflows/release.yml diff --git a/apps/admin/.github/PULL_REQUEST_TEMPLATE.md b/apps/admin/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index dbce67a..0000000 --- a/apps/admin/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,11 +0,0 @@ -## Pull Request 详情 - -请根据实际使用情况修改以下信息。 - -## 版本信息 - -## 解决了哪些问题 - -## 是否关闭了某个 Issue - -Closes # diff --git a/apps/admin/.github/workflows/linter.yml b/apps/admin/.github/workflows/linter.yml deleted file mode 100644 index 450ec86..0000000 --- a/apps/admin/.github/workflows/linter.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: Lint Code - -permissions: - contents: write - -on: - pull_request: - branches: [main] - -jobs: - lint: - name: Lint All Code - runs-on: ubuntu-latest - - steps: - - name: Checkout Code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Lint Code Base - uses: github/super-linter@v4 - env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: main - # To change branch master or main - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - FILTER_REGEX_EXCLUDE: (docs|.github) - VALIDATE_MARKDOWN: false diff --git a/apps/admin/.github/workflows/release.yml b/apps/admin/.github/workflows/release.yml deleted file mode 100644 index 300102e..0000000 --- a/apps/admin/.github/workflows/release.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Release - -permissions: - contents: write - -on: - push: - tags: - - "v*" - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - uses: actions/setup-node@v3 - with: - node-version: 16.x - - - run: npx githublogen - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/apps/admin/vercel.json b/apps/admin/vercel.json index 3d7937d..bbf892e 100644 --- a/apps/admin/vercel.json +++ b/apps/admin/vercel.json @@ -1,19 +1,5 @@ { - "version": 2, - "builds": [ - { - "src": "pnpm run build", - "use": "@vercel/static-build", - "config": { - "NODE_VERSION": "20" - } - } - ], - "routes": [ - { - "src": "/(.*)", - "dest": "/index.html", - "status": 200 - } - ] + "$schema": "https://openapi.vercel.sh/vercel.json", + "buildCommand": "pnpm turbo build", + "outputDirectory": "dist" }