Skip to content

Commit

Permalink
Updating to node v20
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisAlund committed Feb 15, 2024
1 parent 76c05c7 commit 8435e6b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: "yarn"
cache-dependency-path: functions/yarn.lock

Expand All @@ -37,19 +37,11 @@ jobs:
yarn global add firebase-tools@latest
firebase --version
- name: Cache functions-ts NPM packages
uses: actions/cache@v3
with:
path: functions-ts/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Cache functions NPM packages
uses: actions/cache@v3
- uses: actions/setup-node@v3
with:
path: functions-js/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
node-version: 20
cache: 'yarn'
cache-dependency-path: functions/yarn.lock

- run: yarn --cwd functions install

Expand All @@ -69,7 +61,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'yarn'
cache-dependency-path: functions/yarn.lock

Expand Down
14 changes: 7 additions & 7 deletions extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ resources:
properties:
location: ${LOCATION}
buildConfig:
runtime: nodejs18
runtime: nodejs20
serviceConfig:
availableMemory: 512M
eventTrigger:
Expand All @@ -143,7 +143,7 @@ resources:
properties:
location: ${LOCATION}
buildConfig:
runtime: nodejs18
runtime: nodejs20
serviceConfig:
availableMemory: 512M
eventTrigger:
Expand All @@ -158,7 +158,7 @@ resources:
properties:
location: ${LOCATION}
buildConfig:
runtime: nodejs18
runtime: nodejs20
serviceConfig:
availableMemory: 512M
eventTrigger:
Expand All @@ -173,7 +173,7 @@ resources:
properties:
location: ${LOCATION}
buildConfig:
runtime: nodejs18
runtime: nodejs20
serviceConfig:
availableMemory: 512M
eventTrigger:
Expand All @@ -188,7 +188,7 @@ resources:
properties:
location: ${LOCATION}
buildConfig:
runtime: nodejs18
runtime: nodejs20
serviceConfig:
availableMemory: 512M
eventTrigger:
Expand All @@ -203,7 +203,7 @@ resources:
properties:
location: ${LOCATION}
buildConfig:
runtime: nodejs18
runtime: nodejs20
serviceConfig:
availableMemory: 512M
eventTrigger:
Expand All @@ -218,7 +218,7 @@ resources:
properties:
location: ${LOCATION}
buildConfig:
runtime: nodejs18
runtime: nodejs20
serviceConfig:
availableMemory: 512M
eventTrigger:
Expand Down
2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "18"
"node": "20"
},
"main": "lib/src/index.js",
"dependencies": {
Expand Down

0 comments on commit 8435e6b

Please sign in to comment.