mirror of
https://github.com/mengxi-ream/read-frog.git
synced 2026-09-01 15:36:33 +08:00
ci: migrate workflows to pnpm setup (#2074)
This commit is contained in:
@@ -20,14 +20,11 @@ jobs:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v7
|
||||
- name: Setup pnpm and Node.js
|
||||
uses: pnpm/setup@v2
|
||||
with:
|
||||
node-version: "26"
|
||||
cache: pnpm
|
||||
cache: true
|
||||
install: false
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
@@ -37,14 +37,11 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.event.inputs.tag }}
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v7
|
||||
- name: Setup pnpm and Node.js
|
||||
uses: pnpm/setup@v2
|
||||
with:
|
||||
node-version: "26"
|
||||
cache: pnpm
|
||||
cache: true
|
||||
install: false
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
@@ -29,14 +29,11 @@ jobs:
|
||||
with:
|
||||
ref: ${{ inputs.tag }}
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v6
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v7
|
||||
- name: Setup pnpm and Node.js
|
||||
uses: pnpm/setup@v2
|
||||
with:
|
||||
node-version: "26"
|
||||
cache: pnpm
|
||||
cache: true
|
||||
install: false
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
## Build Environment
|
||||
|
||||
- **Node.js**: >= 22.22.0
|
||||
- **pnpm**: 11.13.1 (auto-installed via corepack)
|
||||
- **Node.js**: ^26.5.1
|
||||
- **pnpm**: 11.20.0 (pinned by the `packageManager` field in `package.json`)
|
||||
|
||||
## Build Steps
|
||||
|
||||
```bash
|
||||
# 1. Enable corepack (ships with Node.js) to auto-install the correct pnpm version
|
||||
corepack enable
|
||||
# 1. Install pnpm if it is not already available
|
||||
npx get-pnpm
|
||||
|
||||
# 2. Install dependencies
|
||||
# 2. Install dependencies using the version pinned in package.json
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
# 3. Build the Firefox extension
|
||||
|
||||
Reference in New Issue
Block a user