Skip to content

Commit f37df2f

Browse files
committed
ci(CodeBuild): use n
1 parent 525ba2e commit f37df2f

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

codebuild/nodejs16.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ env:
77
phases:
88
install:
99
commands:
10-
- apt remove nodejs
11-
- TO_REMOVE=$(which npm)
12-
- rm $TO_REMOVE
13-
- TO_REMOVE=$(which node)
14-
- rm $TO_REMOVE
15-
- curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
16-
- apt install -y nodejs
10+
- n 16
1711
- node -v
1812
- npm -v
1913
- npm ci --unsafe-perm

codebuild/test_vectors/nodejs16.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@ env:
88
phases:
99
install:
1010
commands:
11-
- apt remove nodejs
12-
- TO_REMOVE=$(which npm)
13-
- rm $TO_REMOVE
14-
- TO_REMOVE=$(which node)
15-
- rm $TO_REMOVE
16-
- curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
17-
- apt install -y nodejs
11+
- n 16
1812
- node -v
1913
- npm -v
20-
- npm ci
14+
- npm ci --unsafe-perm
2115
- npm run build
2216
build:
2317
commands:

0 commit comments

Comments
 (0)