Skip to content

Commit 3aeadaa

Browse files
committed
also update dependencies in build scripts
(note, available images only supports node12 & 14, but you can ovveride it with a command per aws/aws-codebuild-docker-images#490 (comment) ) from fez-frontend: error: [Container] 2022/02/10 04:49:30 Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named '16' of nodejs. This build image has the following versions: 12, 14
1 parent d019048 commit 3aeadaa

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

bin/codebuild-setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
set -e
55

66
printf "Node "; node -v;
7-
printf "(Codeship default) npm v"; npm -v
7+
printf "npm v"; npm -v
88

9-
printf "\n\n--- GET LATEST VERSION OF NPM 6 ---\n"
10-
echo "$ npm install -g npm@6"
11-
npm install -g npm@6
9+
printf "\n\n--- GET LATEST VERSION OF NPM 8 ---\n"
10+
echo "$ npm install -g npm@8"
11+
npm install -g npm@8
1212

1313
printf "\nNow running npm v"; npm -v
1414

codebuild-buildspec-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ phases:
2828
install:
2929
runtime-versions:
3030
java: corretto11
31-
nodejs: 12
32-
#commands:
33-
# - command
31+
nodejs: 14
32+
commands:
33+
- n 16
3434
# - command
3535
pre_build:
3636
commands:

codebuild-buildspec-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ phases:
2828
install:
2929
runtime-versions:
3030
java: corretto11
31-
nodejs: 12
32-
#commands:
33-
# - command
31+
nodejs: 14
32+
commands:
33+
- n 16
3434
# - command
3535
pre_build:
3636
commands:

0 commit comments

Comments
 (0)