From 9c310df25577c542a2c52c9830585ae2469d8d5b Mon Sep 17 00:00:00 2001 From: sealday Date: Fri, 19 Apr 2024 13:56:55 +0800 Subject: [PATCH] fix: improve release process (#773) Co-authored-by: sealday Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/773 --- .gitea/workflows/release.yaml | 11 +++++++++++ .gitignore | 1 + 2 files changed, 12 insertions(+) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 823fdf3e7..3276e82ba 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -20,10 +20,21 @@ jobs: uses: pnpm/action-setup@v3 with: standalone: true + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - name: Setup pnpm cache + uses: actions/cache@v4 + with: + path: ${{ env.STORE_PATH }} + key: pnpm-store - name: Install dependencies run: pnpm install - name: Build run: pnpm build:p + - name: show status + run: git status - name: publish run: pnpm publish -r --registry=https://npm.daoyoucloud.com --publish-branch ${{ gitea.ref }} env: diff --git a/.gitignore b/.gitignore index dd306402a..5192c445b 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,4 @@ ncc-cache/ yarn--** v8-compile-cache-** .env.local.* +.pnpm-store