From f6a749ef3acf1699a0a7c43a2b8980c7ec3f6507 Mon Sep 17 00:00:00 2001 From: Scott Muc Date: Tue, 18 Apr 2023 10:49:47 +0200 Subject: [PATCH] Bump node version to 18 Version 16 will be end of life in September. Ref: https://endoflife.date/nodejs --- .github/workflows/continuous-deployment.yaml | 2 +- .github/workflows/pull-request.yaml | 2 +- .tool-versions | 2 +- Dockerfile | 2 +- README.md | 2 +- package-lock.json | 6 +++--- package.json | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/continuous-deployment.yaml b/.github/workflows/continuous-deployment.yaml index 61199c8..bbd5792 100644 --- a/.github/workflows/continuous-deployment.yaml +++ b/.github/workflows/continuous-deployment.yaml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@master - uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 18 - run: npm run-script build - uses: superfly/flyctl-actions/setup-flyctl@master - run: flyctl deploy --remote-only diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 35cbb65..750ab89 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -12,5 +12,5 @@ jobs: - uses: actions/checkout@master - uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 18 - run: npm run-script build diff --git a/.tool-versions b/.tool-versions index bcca0b8..0f725a2 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -nodejs 16.19.0 +nodejs 18.16.0 flyctl 0.0.456 diff --git a/Dockerfile b/Dockerfile index c5edaee..b6e762c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM debian:bullseye as builder -ARG NODE_VERSION=v16.18.1 +ARG NODE_VERSION=v18.16.0 RUN apt-get update; apt install -y curl python3 build-essential RUN curl https://get.volta.sh | bash diff --git a/README.md b/README.md index 1e5cac1..b08e93e 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Refer to [CONTRIBUTING.md][contributing_url] ## Development * Have a working `docker` setup and this repository clone -* `docker run --rm -it -v $PWD:/workspace -p 8080:8080 -w /workspace node:16 bash` +* `docker run --rm -it -v $PWD:/workspace -p 8080:8080 -w /workspace node:18 bash` * Running `npm run-script build` and then `npm start` * Look at the results in your browser: `open http://localhost:8080/` diff --git a/package-lock.json b/package-lock.json index ed96862..07c3bf2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "devops", "version": "0.0.1", "dependencies": { - "bourbon": "*", + "bourbon": "latest", "compression": "^1.7.4", "connect-redirecthost": "^3.0.0", "ejs": "^3.1.7", @@ -17,14 +17,14 @@ "jshint": "^2.13.4", "morgan": "^1.10.0", "node-sass": "latest", - "normalize-scss": "*", + "normalize-scss": "latest", "static-asset": "^0.6.0", "underscore": "^1.13.1", "urijs": ">=1.19.11", "walk": "^2.3.14" }, "engines": { - "node": "16.x" + "node": "18.x" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index 008d588..d589afb 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "heroku-postbuild": "script/build" }, "engines": { - "node": "16.x" + "node": "18.x" }, "dependencies": { "bourbon": "latest",