Skip to content

Commit

Permalink
Upgrade Node 14 to Node LTS (16.3.1) (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrees authored Dec 18, 2021
1 parent 97f404a commit ff3877b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ env:
FULL_DOMAIN: ${{ github.event.number }}.planx.pizza
PULLREQUEST_ID: ${{ github.event.number }}
EDITOR_DIRECTORY: editor.planx.uk
PNPM_VERSION: 6.14.7
NODE_VERSION: 14
PNPM_VERSION: 6.24.1
NODE_VERSION: 16.13.1 # 16.13.1 = LTS

jobs:
integration_tests:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ concurrency: staging_environment

env:
DEPLOYMENT_ENVIRONMENT: staging
NODE_VERSION: 16.13.1 # 16.13.1 = LTS

jobs:
test_and_build:
Expand All @@ -19,7 +20,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: ${{ env.NODE_VERSION }}
# https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows#using-the-cache-action
- name: NPM cache
uses: actions/cache@v2
Expand Down Expand Up @@ -76,9 +77,9 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: ${{ env.NODE_VERSION }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/push-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ concurrency: production_environment

env:
DEPLOYMENT_ENVIRONMENT: production
NODE_VERSION: 16.13.1 # 16.13.1 = LTS

jobs:
test_and_build:
Expand All @@ -19,7 +20,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: ${{ env.NODE_VERSION }}
# https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows#using-the-cache-action
- name: NPM cache
uses: actions/cache@v2
Expand Down Expand Up @@ -76,9 +77,9 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: ${{ env.NODE_VERSION }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.13.0
v16.13.1
3 changes: 2 additions & 1 deletion api.planx.uk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:14.4.0-alpine as base
# 16.13.1 = LTS
FROM node:16.13.1-alpine as base

WORKDIR /api
RUN npm install -g pnpm
Expand Down
3 changes: 2 additions & 1 deletion sharedb.planx.uk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:14.4.0-alpine as base
# 16.13.1 = LTS
FROM node:16.13.1-alpine as base

WORKDIR /sharedb
RUN npm install -g pnpm
Expand Down

0 comments on commit ff3877b

Please sign in to comment.