From 5fa5944dff8e339db299b4aebe1864dc0cbc1324 Mon Sep 17 00:00:00 2001 From: YunYouJun Date: Fri, 24 Jan 2025 11:40:02 +0800 Subject: [PATCH] chore: fix ci node version --- .github/workflows/release.yml | 4 ++-- .github/workflows/vercel.yml | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1993a67..7cb92a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,10 +17,10 @@ jobs: uses: pnpm/action-setup@v2 # after pnpm - - name: Use Node.js 16 + - name: Use Node.js LTS uses: actions/setup-node@v3 with: - node-version: 16 + node-version: lts/* registry-url: https://registry.npmjs.org/ cache: pnpm diff --git a/.github/workflows/vercel.yml b/.github/workflows/vercel.yml index d7c0806..9aba287 100644 --- a/.github/workflows/vercel.yml +++ b/.github/workflows/vercel.yml @@ -14,8 +14,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Install pnpm + uses: pnpm/action-setup@v2 + # after pnpm + - name: Use Node.js LTS + uses: actions/setup-node@v3 + with: + node-version: lts/* + registry-url: https://registry.npmjs.org/ + cache: pnpm + - name: Install Vercel CLI - run: npm install --global vercel@latest + run: pnpm i -g vercel@latest + - name: Pull Vercel Environment Information run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - name: Build Project Artifacts