Skip to content

Commit 8435e6b

Browse files
committed
Updating to node v20
1 parent 76c05c7 commit 8435e6b

File tree

3 files changed

+14
-22
lines changed

3 files changed

+14
-22
lines changed

.github/workflows/build-deploy.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- uses: actions/setup-node@v3
3030
with:
31-
node-version: 18
31+
node-version: 20
3232
cache: "yarn"
3333
cache-dependency-path: functions/yarn.lock
3434

@@ -37,19 +37,11 @@ jobs:
3737
yarn global add firebase-tools@latest
3838
firebase --version
3939
40-
- name: Cache functions-ts NPM packages
41-
uses: actions/cache@v3
42-
with:
43-
path: functions-ts/node_modules
44-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
45-
restore-keys: ${{ runner.os }}-yarn-
46-
47-
- name: Cache functions NPM packages
48-
uses: actions/cache@v3
40+
- uses: actions/setup-node@v3
4941
with:
50-
path: functions-js/node_modules
51-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
52-
restore-keys: ${{ runner.os }}-yarn-
42+
node-version: 20
43+
cache: 'yarn'
44+
cache-dependency-path: functions/yarn.lock
5345

5446
- run: yarn --cwd functions install
5547

@@ -69,7 +61,7 @@ jobs:
6961

7062
- uses: actions/setup-node@v3
7163
with:
72-
node-version: 18
64+
node-version: 20
7365
cache: 'yarn'
7466
cache-dependency-path: functions/yarn.lock
7567

extension.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ resources:
128128
properties:
129129
location: ${LOCATION}
130130
buildConfig:
131-
runtime: nodejs18
131+
runtime: nodejs20
132132
serviceConfig:
133133
availableMemory: 512M
134134
eventTrigger:
@@ -143,7 +143,7 @@ resources:
143143
properties:
144144
location: ${LOCATION}
145145
buildConfig:
146-
runtime: nodejs18
146+
runtime: nodejs20
147147
serviceConfig:
148148
availableMemory: 512M
149149
eventTrigger:
@@ -158,7 +158,7 @@ resources:
158158
properties:
159159
location: ${LOCATION}
160160
buildConfig:
161-
runtime: nodejs18
161+
runtime: nodejs20
162162
serviceConfig:
163163
availableMemory: 512M
164164
eventTrigger:
@@ -173,7 +173,7 @@ resources:
173173
properties:
174174
location: ${LOCATION}
175175
buildConfig:
176-
runtime: nodejs18
176+
runtime: nodejs20
177177
serviceConfig:
178178
availableMemory: 512M
179179
eventTrigger:
@@ -188,7 +188,7 @@ resources:
188188
properties:
189189
location: ${LOCATION}
190190
buildConfig:
191-
runtime: nodejs18
191+
runtime: nodejs20
192192
serviceConfig:
193193
availableMemory: 512M
194194
eventTrigger:
@@ -203,7 +203,7 @@ resources:
203203
properties:
204204
location: ${LOCATION}
205205
buildConfig:
206-
runtime: nodejs18
206+
runtime: nodejs20
207207
serviceConfig:
208208
availableMemory: 512M
209209
eventTrigger:
@@ -218,7 +218,7 @@ resources:
218218
properties:
219219
location: ${LOCATION}
220220
buildConfig:
221-
runtime: nodejs18
221+
runtime: nodejs20
222222
serviceConfig:
223223
availableMemory: 512M
224224
eventTrigger:

functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"logs": "firebase functions:log"
1717
},
1818
"engines": {
19-
"node": "18"
19+
"node": "20"
2020
},
2121
"main": "lib/src/index.js",
2222
"dependencies": {

0 commit comments

Comments
 (0)