From 21eda5d42c5a6a30c20d5e7735f6cd0d99d5c944 Mon Sep 17 00:00:00 2001 From: Jun Chang <52chinaweb@gmail.com> Date: Tue, 8 Apr 2025 11:35:35 +0800 Subject: [PATCH] chore(action): upgrade actions and pnpm versions in release workflow --- .github/workflows/ release.yml | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ release.yml b/.github/workflows/ release.yml index 9f8fd1c..4976841 100644 --- a/.github/workflows/ release.yml +++ b/.github/workflows/ release.yml @@ -12,34 +12,20 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 + - name: Checkout + uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: 16.x - - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 name: Install pnpm - id: pnpm-install with: - version: 8 + version: 10 run_install: false - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 - name: Setup pnpm cache + - name: Install Node.js + uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + node-version: 20 + cache: 'pnpm' - name: Install dependencies run: pnpm install