ci: migrate workflows to pnpm setup (#2074)

This commit is contained in:
ananaBMaster
2026-08-14 16:54:47 -07:00
committed by GitHub
parent fa9201bbf6
commit e80a0e525c
4 changed files with 17 additions and 26 deletions
+4 -7
View File
@@ -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
+4 -7
View File
@@ -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
+4 -7
View File
@@ -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
+5 -5
View File
@@ -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