From 6a88d5a0bfc30e59fdf33ee08e8a6a9b1d7df4bd Mon Sep 17 00:00:00 2001 From: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Date: Sun, 22 Mar 2026 10:03:18 +0000 Subject: [PATCH] ci: update --- .gitea/workflows/publish.yaml | 24 ++++++++++++++++++++++-- package.json | 2 +- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 447a685..59e92a1 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -29,9 +29,29 @@ jobs: - uses: actions/setup-node@v6 with: - node-version: 24 + node-version: latest + + - uses: pnpm/action-setup@v3 + with: + version: latest + run_install: false + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - name: Run Semantic Release env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - run: npx semantic-release \ No newline at end of file + run: | + pnpm i + pnpm release \ No newline at end of file diff --git a/package.json b/package.json index 35cc4a7..e93faaa 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "version": "1.0.0", "description": "", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "release": "semantic-release" }, "keywords": [], "author": "DemonKernel",