From a32d10f9e099d54c214e2c706a433461981e31df Mon Sep 17 00:00:00 2001 From: viarotel Date: Thu, 17 Oct 2024 22:51:26 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=99=BB=EF=B8=8F=20CI=20flows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7119d8d..3a4a45a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,27 +9,31 @@ jobs: ci: runs-on: ubuntu-latest steps: - - name: checkout + - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - - name: setup Node.js + - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: 20 - - name: enable corepack and pnpm + - name: Enable corepack and pnpm run: | corepack enable corepack prepare pnpm@latest --activate - - name: install dependencies and build + - name: Install dependencies and build run: | pnpm install pnpm build - - name: release + - name: Fetch latest tags + run: | + git fetch --tags + + - name: Release uses: softprops/action-gh-release@v2 with: draft: false