From 5a786d35a33aa665c28d68ffbd56c90fd2a60ccb Mon Sep 17 00:00:00 2001 From: "142vip.cn" <2237221210@qq.com> Date: Mon, 22 Jul 2024 23:22:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=98=E6=96=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=94=AF=E6=8C=81CI=20=E8=87=AA=E5=8A=A8=E5=8C=96=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yaml | 7 ++++--- package.json | 8 +++++--- pnpm-lock.yaml | 2 ++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index ef63b5a..311baaa 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -30,6 +30,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # 如果未启用 lastUpdated,则不需要 + - uses: pnpm/action-setup@v3 - name: Setup Node @@ -49,17 +50,17 @@ jobs: # 将README.md同步,利于github pages分支展示 - name: Add Readme.md To Dist run: | - cp -f README.md docs/.vuepress/dist + cp -f README.md dist - name: Check GitHub Pages status - uses: crazy-max/ghaction-github-status@v3 + uses: crazy-max/ghaction-github-status@v4 with: pages_threshold: major_outage - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: docs/.vitepress/dist + path: dist # 部署工作 deploy: diff --git a/package.json b/package.json index ec1b775..277e487 100644 --- a/package.json +++ b/package.json @@ -14,11 +14,12 @@ "homePage": "https://142vip.cn" }, "scripts": { - "preinstall": "npx only-allow pnpm && chmod +x ./scripts/* && pnpm build", + "preinstall": "npx only-allow pnpm && chmod +x ./scripts/*", "dev": "vitepress dev --port 8080 --host", - "build": "npx fairy-cli turbo --build", + "build": "npx fa turbo --build", + "build:fairy-cli": "npx turbo run build --filter=@142vip/fairy-cli --color --only", "build:docs": "vitepress build", - "clean": "npx fairy-cli clean --ignore-tips --all", + "clean": "npx fa clean --ignore-tips --all", "lint": "npx eslint . --fix", "publish": "npx lerna publish --canary from-git", "preview": "vitepress preview" @@ -26,6 +27,7 @@ "dependencies": { }, "devDependencies": { + "@142vip/fairy-cli": "workspace:*", "@142vip/changelog": "workspace:*", "@142vip/vitepress": "workspace:*", "@antfu/eslint-config": "^2.20.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a1c81b7..030b9a2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,7 @@ importers: .: specifiers: '@142vip/changelog': workspace:* + '@142vip/fairy-cli': workspace:* '@142vip/vitepress': workspace:* '@antfu/eslint-config': ^2.20.0 '@lerna-lite/cli': ^3.5.1 @@ -30,6 +31,7 @@ importers: webpack: ^4.36 devDependencies: '@142vip/changelog': link:packages/changelog + '@142vip/fairy-cli': link:packages/fairy-cli '@142vip/vitepress': link:packages/vitepress '@antfu/eslint-config': 2.23.0_pbxknroda33jdyycoywnewh6qu '@lerna-lite/cli': 3.7.1_ukf4asiuesntojcuxkt4aty5fq