diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 6593230d9..d8e103896 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e27e8464..118954095 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/submit.yml b/.github/workflows/submit.yml index 09b0e6d83..c0286dbaf 100644 --- a/.github/workflows/submit.yml +++ b/.github/workflows/submit.yml @@ -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 diff --git a/SOURCE_CODE_REVIEW.md b/SOURCE_CODE_REVIEW.md index b117d499b..658804868 100644 --- a/SOURCE_CODE_REVIEW.md +++ b/SOURCE_CODE_REVIEW.md @@ -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