Skip to content

Commit

Permalink
chore: upgrade to node 20 (#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Sep 19, 2023
1 parent 2228f90 commit 2b212f5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.8'
services:
app:
# Use offical typescript-node devcontainer image
image: mcr.microsoft.com/vscode/devcontainers/typescript-node:0-18
image: mcr.microsoft.com/vscode/devcontainers/typescript-node:0-20

volumes:
- ..:/workspace:cached
Expand Down
17 changes: 7 additions & 10 deletions .github/scripts/deploy.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# type: ignore

import logging
import os
from argparse import ArgumentParser

from azure.identity import DefaultAzureCredential
from azure.mgmt.web import WebSiteManagementClient
from azure.mgmt.web.models import (
StaticSiteUserProvidedFunctionAppARMResource,
Site,
SiteConfig,
)
from azure.mgmt.storage import StorageManagementClient
from azure.mgmt.applicationinsights import ApplicationInsightsManagementClient
from azure.mgmt.redis import RedisManagementClient
from argparse import ArgumentParser
import logging
from azure.mgmt.storage import StorageManagementClient
from azure.mgmt.web import WebSiteManagementClient
from azure.mgmt.web.models import (
Site, SiteConfig, StaticSiteUserProvidedFunctionAppARMResource)


def main(environment_name: str, verbose: bool = False):
Expand Down Expand Up @@ -99,7 +96,7 @@ def main(environment_name: str, verbose: bool = False):
app_settings=[
{"name": "FUNCTIONS_EXTENSION_VERSION", "value": "~4"},
{"name": "FUNCTIONS_WORKER_RUNTIME", "value": "node"},
{"name": "WEBSITE_NODE_DEFAULT_VERSION", "value": "~18"},
{"name": "WEBSITE_NODE_DEFAULT_VERSION", "value": "~20"},
# Better deploy and cold-start performance
# https://docs.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package#integration-with-zip-deployment
{"name": "WEBSITE_RUN_FROM_PACKAGE", "value": "1"},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3.8.1
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3.8.1
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Install dependencies
Expand Down

0 comments on commit 2b212f5

Please sign in to comment.