From 7e50d5cf621aab3141c364a2521dd01cf70b3835 Mon Sep 17 00:00:00 2001 From: Plumbiu <3434909403@qq.com> Date: Sat, 12 Aug 2023 15:12:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A7=A9=20ci=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs-deploy.yaml | 5 ++++- .github/workflows/versions.yaml | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs-deploy.yaml b/.github/workflows/docs-deploy.yaml index d782ec85..3544aef6 100644 --- a/.github/workflows/docs-deploy.yaml +++ b/.github/workflows/docs-deploy.yaml @@ -32,7 +32,10 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 # Not needed if lastUpdated is not enabled - - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm + - name: Install pnpm + uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm + with: + version: 7 - name: Setup Node uses: actions/setup-node@v3 with: diff --git a/.github/workflows/versions.yaml b/.github/workflows/versions.yaml index 7ff33dc8..5c212c94 100644 --- a/.github/workflows/versions.yaml +++ b/.github/workflows/versions.yaml @@ -11,11 +11,11 @@ jobs: timeout-minutes: 15 runs-on: ubuntu-latest steps: - - name: checkout code repository + - name: Checkout code repository uses: actions/checkout@v3 with: fetch-depth: 0 - - name: setup node.js + - name: Setup node.js uses: actions/setup-node@v3 with: node-version: 18 @@ -23,13 +23,13 @@ jobs: uses: pnpm/action-setup@v2 with: version: 7 - - name: dependenies install + - name: Install dependencies run: pnpm install - name: Setup npmrc run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc - - name: start build + - name: Build with Truth-cli run: pnpm build - - name: create and publish versions + - name: Create and publish versions uses: changesets/action@v1 with: version: pnpm changeset version