Skip to content

Commit 7652a2d

Browse files
committed
ci(node16): manually install node16 and test
1 parent 84a7a7d commit 7652a2d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

codebuild/nodejs16.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,10 @@ phases:
88
install:
99
commands:
1010
- apt remove nodejs
11-
- NVM_DIR=$CODEBUILD_SRC_DIR/.nvm
12-
- mkdir $NVM_DIR
13-
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
14-
- chmod +x "$NVM_DIR/nvm.sh"
15-
- . "$NVM_DIR/nvm.sh"
16-
- nvm install 16
17-
- nvm alias default 16
18-
- npm -v
11+
- curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
12+
- apt install -y nodejs
1913
- node -v
14+
- npm -v
2015
- npm ci --unsafe-perm
2116
- npm run build
2217
build:

0 commit comments

Comments
 (0)