Skip to content

Commit 38ffb58

Browse files
微信公众号:储凡mmdapl
微信公众号:储凡
andauthored
feat: 移除vercel模块和流水线同步,采用官方基于Git仓库同步策略进行部署 (#179)
* feat: 移除`vercel`模块和流水线同步,采用官方基于`Git`仓库同步策略进行部署 * chore: update --------- Co-authored-by: chufan <[email protected]>
1 parent b180f0c commit 38ffb58

File tree

3 files changed

+161
-1662
lines changed

3 files changed

+161
-1662
lines changed

.github/workflows/CD.yaml

-29
Original file line numberDiff line numberDiff line change
@@ -73,35 +73,6 @@ jobs:
7373
id: deployment
7474
uses: actions/deploy-pages@v4
7575

76-
# 部署到vercel平台
77-
# deploy-vercel:
78-
# name: "部署到Vercel平台"
79-
# needs: install-init
80-
# runs-on: ubuntu-latest
81-
# if: github.repository == '142vip/JavaScriptCollection'
82-
# steps:
83-
# - name: Checkout Code
84-
# uses: actions/checkout@v3
85-
# with:
86-
# fetch-depth: 0
87-
#
88-
# - name: Restore Dependencies From Cache
89-
# uses: actions/cache@v3
90-
# with:
91-
# path: |
92-
# node_modules
93-
# key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}
94-
#
95-
# - name: Pull Vercel Environment Information
96-
# run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
97-
#
98-
# ## 注意:安装pnpm
99-
# - name: Build Project Artifacts
100-
# run: npm i pnpm@7 -g && vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
101-
#
102-
# - name: Deploy Project Artifacts to Vercel
103-
# run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
104-
10576
# 版本发布
10677
release:
10778
name: 创建Github发布

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"dev": "vuepress dev docs",
2424
"build": "vuepress build docs --clean-temp --clean-cache",
2525
"build:proxy": "NEED_PROXY=true vuepress build docs --clean-temp --clean-cache",
26-
"deploy:vercel": "npx vercel --prod",
2726
"release": "npx fa release --vip"
2827
},
2928
"devDependencies": {
@@ -33,13 +32,11 @@
3332
"@142vip/vuepress": "^0.0.1-alpha.5",
3433
"@vue/repl": "^4.4.2",
3534
"@vuepress/bundler-vite": "^2.0.0-rc.17",
36-
"eslint": "8.55.0",
3735
"mermaid": "^11.3.0",
3836
"only-allow": "^1.2.1",
3937
"sass-embedded": "^1.79.4",
4038
"simple-git-hooks": "^2.11.1",
4139
"typescript": "^5.5.4",
42-
"vercel": "^32.7.2",
4340
"vue": "^3.5.8",
4441
"vuepress": "^2.0.0-rc.17",
4542
"vuepress-plugin-search-pro": "^2.0.0-rc.57",

0 commit comments

Comments
 (0)