Skip to content

Commit 165e0f2

Browse files
authored
chore: update Node.js version to v16 (#96)
1 parent 3aa0438 commit 165e0f2

File tree

6 files changed

+52
-14786
lines changed

6 files changed

+52
-14786
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Node.js & TypeScript",
3-
"image": "mcr.microsoft.com/devcontainers/typescript-node:14-bullseye",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node:16-bullseye",
44

55
// Features to add to the dev container. More info: https://containers.dev/features.
66
// "features": {},
@@ -11,11 +11,11 @@
1111
"source=try-node-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
1212
],
1313
// Use 'postCreateCommand' to run commands after the container is created.
14-
// "postCreateCommand": "yarn install",
14+
"postCreateCommand": "sudo chown node:node node_modules",
1515

1616
// Configure tool-specific properties.
1717
// "customizations": {},
1818

1919
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
20-
// "remoteUser": "root"
20+
"remoteUser": "node"
2121
}

.github/workflows/DEPLOY.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
- name: Use Node.js
1616
uses: actions/setup-node@v3
1717
with:
18-
node-version: 14.x
19-
- name: Use the latest npm
20-
run: npm i -g npm
18+
node-version-file: ".nvmrc"
19+
- name: Use npm
20+
run: corepack enable npm
2121
- name: Run npm install
2222
run: npm ci
2323
- name: Run Build App

.github/workflows/TEST.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
- name: Use Node.js
1414
uses: actions/setup-node@v3
1515
with:
16-
node-version: 14.x
17-
- name: Use the latest npm
18-
run: npm i -g npm
16+
node-version-file: ".nvmrc"
17+
- name: Use npm
18+
run: corepack enable npm
1919
- name: Run npm install
2020
run: npm ci
2121
- name: Run npm test

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.20.2

0 commit comments

Comments
 (0)