chore: fix ci node version

This commit is contained in:
YunYouJun
2025-01-24 11:40:02 +08:00
parent 1af9e36fc0
commit 5fa5944dff
2 changed files with 14 additions and 3 deletions

View File

@@ -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

View File

@@ -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