Skip to content

Commit

Permalink
feat: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chufan443 committed Sep 1, 2023
1 parent 836d942 commit 9febb9f
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 97 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/code-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
pull-requests: read

steps:
- name: Checkout repository
- name: checkout code
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
Expand All @@ -34,7 +37,7 @@ jobs:
version: 7
run_install: true

- name: Code Eslint Fix
- name: Code ESlint Fix
run: pnpm lintfix
- name: Build Site
run: pnpm build
5 changes: 4 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ jobs:
pull-requests: read

steps:
- name: Checkout repository
- name: checkout code
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0

- name: Login Docker
run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/esc-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ jobs:
pull-requests: read

steps:
- name: Checkout repository
- name: checkout code
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0

- name: Login Docker
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: checkout code
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/vercel-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ on:
branches:
- master
- next
pull_request:
branches:
- master
- next
# pull_request:
# branches:
# - master
# - next
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0

- name: sync to vercel
uses: amondnet/vercel-action@v20
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@
"clean": "快速删除本地依赖"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vuepress/client": "2.0.0-beta.61",
"@vuepress/utils": "2.0.0-beta.61",
"eslint": "^8.35.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint": "^8.48.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-vue": "^9.9.0",
"eslint-plugin-vue": "^9.17.0",
"husky": "^8.0.3",
"typescript": "^3.9.10",
"vercel": "^32.1.0",
"vue": "^3.2.47",
"vue": "^3.3.4",
"vuepress": "2.0.0-beta.61",
"vuepress-plugin-search-pro": "2.0.0-beta.185",
"vuepress-theme-hope": "2.0.0-beta.185"
Expand Down
Loading

0 comments on commit 9febb9f

Please sign in to comment.