Merge pull request '使用原生npm构建' (#3) from gitea-workflow into main

Reviewed-on: jjnwxs/jingji_TSreference_vue#3
This commit is contained in:
狮子耗耗 2025-04-26 05:03:52 +00:00
commit 39bb3fb2d2

View File

@ -17,23 +17,17 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: pnpm/action-setup@v4
name: 🔧Install pnpm
with:
version: 9
run_install: false
- name: 🔧Install Node.js - name: 🔧Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 20
cache: 'pnpm' cache: 'npm'
- name: 🔧Install dependencies - name: 🔧Install dependencies
run: pnpm install run: npm install
- name: 🔴Build doc - name: 🔴Build doc
run: pnpm run docs:build run: npm run docs:build
- name: 🚀 Deploy to Cloudflare Pages - name: 🚀 Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3 uses: cloudflare/wrangler-action@v3