Skip to content

Commit 6e4aa92

Browse files
authored
Switch to pnpm and update firebase-tools (#10264)
Contributes to #10203
1 parent 3e39305 commit 6e4aa92

File tree

7 files changed

+4506
-720
lines changed

7 files changed

+4506
-720
lines changed

.github/workflows/test.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414
permissions: read-all
1515

1616
env:
17-
NODE_ENV: production
1817
NODE_VERSION: 20
1918

2019
jobs:
@@ -75,14 +74,18 @@ jobs:
7574
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
7675
with:
7776
submodules: recursive
78-
- name: Build site and check links
77+
- name: Build site
7978
run: make build BUILD_CONFIGS=_config.yml
80-
- name: Install Node for Firebase install
81-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
79+
- name: Enable Corepack
80+
run: corepack enable
81+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
8282
with:
8383
node-version: ${{ env.NODE_VERSION }}
84-
- name: Install Firebase CLI
85-
run: npm install -g [email protected]
84+
cache: 'pnpm'
85+
- name: Setup pnpm
86+
run: corepack install
87+
- name: Install node dependencies
88+
run: pnpm install --frozen-lockfile
8689
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
8790
with:
8891
sdk: stable

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ node_modules
1616
.dart_tool
1717
.flutter-plugins
1818
.flutter-plugins-dependencies
19-
.packages
19+
package-lock.json
2020
pubspec.lock
2121
tmp/

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ RUN bundle config set force_ruby_platform true
3838
RUN BUNDLE_WITHOUT="test development" bundle install --jobs=4 --retry=2
3939

4040
ENV NODE_ENV=production
41-
COPY package.json package-lock.json ./
42-
RUN npm ci
41+
COPY package.json ./
42+
RUN npm install
4343

4444
COPY ./ ./
4545

0 commit comments

Comments
 (0)