Browse Source

chore: update ci

chore: test

chore: update ci

chore: update ci

chore: update ci

chore: update ci

chore: update ci

chore: update ci

chore: update ci
pull/3993/head
vben 3 months ago
parent
commit
0085429ef4
  1. 2
      .github/ISSUE_TEMPLATE/bug-report.yml
  2. 2
      .github/ISSUE_TEMPLATE/feature-request.yml
  3. 7
      .github/dependabot.yml
  4. 2
      .github/pull_request_template.md
  5. 8
      .github/workflows/changeset-version.yml
  6. 38
      .github/workflows/ci.yml
  7. 25
      .github/workflows/issue-labeled.yml
  8. 24
      .github/workflows/release-tag.yml
  9. 25
      .github/workflows/semantic-pull-request.yml
  10. 18
      .github/workflows/stale.yml
  11. 2
      apps/web-antd/package.json
  12. 2
      package.json
  13. 2
      packages/@core/forward/preferences/package.json
  14. 2
      packages/@core/forward/stores/package.json
  15. 2
      packages/@core/shared/iconify/package.json
  16. 2
      packages/@core/shared/typings/package.json
  17. 2
      packages/@core/uikit/layout-ui/package.json
  18. 2
      packages/@core/uikit/menu-ui/package.json
  19. 2
      packages/@core/uikit/shadcn-ui/package.json
  20. 2
      packages/@core/uikit/tabs-ui/package.json
  21. 2
      packages/business/common-ui/package.json
  22. 2
      packages/business/layouts/package.json
  23. 2
      packages/hooks/package.json
  24. 2
      packages/locales/package.json
  25. 2
      packages/types/package.json
  26. 448
      pnpm-lock.yaml
  27. 2
      website/package.json

2
.github/ISSUE_TEMPLATE/bug-report.yml

@ -1,7 +1,7 @@
name: 🐞 Bug Report
description: Report an issue with Vben Admin to help us make it better.
title: "Bug: "
labels: ["bug"]
labels: ["bug: pending triage"]
body:
- type: markdown

2
.github/ISSUE_TEMPLATE/feature-request.yml

@ -1,7 +1,7 @@
name: ✨ New Feature Proposal
description: Propose a new feature to be added to Vben Admin
title: "FEATURE: "
labels: ["enhancement"]
labels: ["enhancement: pending triage"]
body:
- type: markdown
attributes:

7
.github/dependabot.yml

@ -4,7 +4,14 @@ updates:
directory: "/"
schedule:
interval: daily
groups:
non-breaking-changes:
update-types: [minor, patch]
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
groups:
non-breaking-changes:
update-types: [minor, patch]

2
.github/pull_request_template.md

@ -26,7 +26,7 @@ Please delete options that are not relevant.
> 👉 _Put an `x` in the boxes that apply._
- [ ] If you introduce new functionality, document it. You can run documentation with `pnpm run docs` command.
- [ ] If you introduce new functionality, document it. You can run documentation with `pnpm run docs:dev` command.
### Changesets

8
.github/workflows/changeset-version.yml

@ -1,5 +1,5 @@
# https://github.com/changesets/action
name: Release
name: Changeset version
on:
workflow_dispatch:
@ -18,7 +18,7 @@ env:
jobs:
version:
if: (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') && github.actor != 'dependabot[bot] && !contains(github.event.head_commit.message, '[skip ci]')
if: (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') && github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
# if: github.repository == 'vbenjs/vue-vben-admin'
timeout-minutes: 15
runs-on: ubuntu-latest
@ -49,7 +49,7 @@ jobs:
uses: changesets/action@v1
with:
version: pnpm run version
commit: "chore: update versions"
title: "chore: update versions"
commit: "chore: bump versions"
title: "chore: bump versions [skip ci]"
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

38
.github/workflows/ci.yml

@ -13,6 +13,7 @@ permissions:
env:
CI: true
TZ: Asia/Shanghai
jobs:
test:
@ -21,10 +22,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20]
os:
- ubuntu-latest
- macos-latest
- windows-latest
# - macos-latest
# - windows-latest
timeout-minutes: 20
steps:
- name: Checkout code
@ -64,10 +66,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20]
os:
- ubuntu-latest
- macos-latest
- windows-latest
# - macos-latest
# - windows-latest
steps:
- name: Checkout code
@ -90,23 +93,28 @@ jobs:
- name: Lint
run: pnpm run lint
# check:
# name: Typecheck
# runs-on: ubuntu-latest
# timeout-minutes: 20
# steps:
# - uses: actions/checkout@v4
# - uses: ./.github/actions/ci-setup
check:
name: Check
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
# - uses: ./.github/actions/ci-setup
# - name: Typecheck
# run: pnpm check:type
# - name: Typecheck
# run: pnpm check:type
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
- name: Check workflow files
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color -shellcheck=""
ci-ok:
name: CI OK
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') && always()
# needs: [test, check, lint]
needs: [test, lint]
needs: [test, check, lint]
env:
FAILURE: ${{ contains(join(needs.*.result, ','), 'failure') }}
steps:

25
.github/workflows/issue-labeled.yml

@ -10,14 +10,23 @@ jobs:
reply-labeled:
runs-on: ubuntu-latest
steps:
# - name: remove pending
# if: github.event.label.name == 'enhancement' || github.event.label.name == 'bug'
# uses: actions-cool/issues-helper@v3
# with:
# actions: "remove-labels"
# token: ${{ secrets.ACCESS_TOKEN }}
# issue-number: ${{ github.event.issue.number }}
# labels: "bug: pending triage"
- name: remove enhancement pending
if: github.event.label.name == 'enhancement'
uses: actions-cool/issues-helper@v3
with:
actions: "remove-labels"
token: ${{ secrets.ACCESS_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: "enhancement: pending triage"
- name: remove bug pending
if: github.event.label.name == 'bug'
uses: actions-cool/issues-helper@v3
with:
actions: "remove-labels"
token: ${{ secrets.ACCESS_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: "bug: pending triage"
- name: needs reproduction
if: github.event.label.name == 'needs reproduction'

24
.github/workflows/release-tag.yml

@ -0,0 +1,24 @@
name: Create Release Tag
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Release for Tag
id: release_tag
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: "true"
body: |
> Please refer to [CHANGELOG.md](https://github.com/vbenjs/vue-vben-admin/blob/main/CHANGELOG.md) for details.

25
.github/workflows/semantic-pull-request.yml

@ -0,0 +1,25 @@
name: Semantic Pull Request
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
main:
if: github.repository == 'vitejs/vite'
runs-on: ubuntu-latest
name: Semantic Pull Request
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
with:
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

18
.github/workflows/stale.yml

@ -0,0 +1,18 @@
name: "Close stale issues"
on:
schedule:
- cron: "0 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.ACCESS_TOKEN }}
stale-issue-message: "This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days"
stale-pr-message: "This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days"
exempt-issue-labels: "bug,enhancement"
days-before-stale: 60
days-before-close: 7

2
apps/web-antd/package.json

@ -39,7 +39,7 @@
"ant-design-vue": "^4.2.3",
"dayjs": "^1.11.11",
"pinia": "2.1.7",
"vue": "3.4.27",
"vue": "^3.4.29",
"vue-router": "^4.3.3"
},
"devDependencies": {

2
package.json

@ -82,7 +82,7 @@
"overrides": {
"@ctrl/tinycolor": "4.1.0",
"clsx": "2.1.1",
"vue": "3.4.27"
"vue": "^3.4.29"
},
"neverBuiltDependencies": [
"canvas",

2
packages/@core/forward/preferences/package.json

@ -36,6 +36,6 @@
"@vben-core/toolkit": "workspace:*",
"@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0",
"vue": "3.4.27"
"vue": "^3.4.29"
}
}

2
packages/@core/forward/stores/package.json

@ -45,7 +45,7 @@
"@vben-core/typings": "workspace:*",
"pinia": "2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",
"vue": "3.4.27",
"vue": "^3.4.29",
"vue-router": "^4.3.3"
}
}

2
packages/@core/shared/iconify/package.json

@ -25,6 +25,6 @@
},
"dependencies": {
"@iconify/vue": "^4.1.2",
"vue": "3.4.27"
"vue": "^3.4.29"
}
}

2
packages/@core/shared/typings/package.json

@ -42,7 +42,7 @@
}
},
"dependencies": {
"vue": "3.4.27",
"vue": "^3.4.29",
"vue-router": "^4.3.3"
}
}

2
packages/@core/uikit/layout-ui/package.json

@ -44,6 +44,6 @@
"@vben-core/shadcn-ui": "workspace:*",
"@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0",
"vue": "3.4.27"
"vue": "^3.4.29"
}
}

2
packages/@core/uikit/menu-ui/package.json

@ -46,6 +46,6 @@
"@vben-core/toolkit": "workspace:*",
"@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0",
"vue": "3.4.27"
"vue": "^3.4.29"
}
}

2
packages/@core/uikit/shadcn-ui/package.json

@ -54,7 +54,7 @@
"clsx": "2.1.1",
"radix-vue": "^1.8.3",
"tailwind-merge": "^2.3.0",
"vue": "3.4.27",
"vue": "^3.4.29",
"vue-sonner": "^1.1.2"
}
}

2
packages/@core/uikit/tabs-ui/package.json

@ -45,6 +45,6 @@
"@vben-core/shadcn-ui": "workspace:*",
"@vben-core/toolkit": "workspace:*",
"@vben-core/typings": "workspace:*",
"vue": "3.4.27"
"vue": "^3.4.29"
}
}

2
packages/business/common-ui/package.json

@ -52,7 +52,7 @@
"@vueuse/core": "^10.11.0",
"@vueuse/integrations": "^10.11.0",
"qrcode": "^1.5.3",
"vue": "3.4.27",
"vue": "^3.4.29",
"vue-router": "^4.3.3"
},
"devDependencies": {

2
packages/business/layouts/package.json

@ -51,7 +51,7 @@
"@vben-core/toolkit": "workspace:*",
"@vben/common-ui": "workspace:*",
"@vben/locales": "workspace:*",
"vue": "3.4.27",
"vue": "^3.4.29",
"vue-router": "^4.3.3"
},
"devDependencies": {

2
packages/hooks/package.json

@ -41,6 +41,6 @@
}
},
"dependencies": {
"vue": "3.4.27"
"vue": "^3.4.29"
}
}

2
packages/locales/package.json

@ -51,7 +51,7 @@
"dependencies": {
"@intlify/core-base": "^9.13.1",
"@vben-core/typings": "workspace:*",
"vue": "3.4.27",
"vue": "^3.4.29",
"vue-i18n": "^9.13.1"
}
}

2
packages/types/package.json

@ -43,7 +43,7 @@
},
"dependencies": {
"@vben-core/typings": "workspace:*",
"vue": "3.4.27",
"vue": "^3.4.29",
"vue-router": "^4.3.3"
}
}

448
pnpm-lock.yaml
File diff suppressed because it is too large
View File

2
website/package.json

@ -9,6 +9,6 @@
},
"devDependencies": {
"vitepress": "^1.2.3",
"vue": "3.4.27"
"vue": "^3.4.29"
}
}
Loading…
Cancel
Save