Skip to content

Commit 5992ee3

Browse files
committed
chore: update CI config to use node 18
1 parent 5678e10 commit 5992ee3

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

.circleci/config.base.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ machine:
99
executors:
1010
w: &windows-e2e-executor
1111
machine:
12-
image: 'windows-server-2019-vs2019:stable'
12+
image: 'windows-server-2022-gui:current'
1313
resource_class: 'windows.medium'
1414
shell: bash.exe
1515
working_directory: ~/repo
@@ -19,7 +19,7 @@ executors:
1919

2020
l: &linux-e2e-executor
2121
docker:
22-
- image: public.ecr.aws/j4f5f3h7/amplify-cli-e2e-base-image-repo-public:latest
22+
- image: public.ecr.aws/j4f5f3h7/amplify-cli-e2e-base-image-repo-public:node18
2323
working_directory: ~/repo
2424
resource_class: large
2525
environment:
@@ -78,6 +78,25 @@ jobs:
7878
executor: << parameters.os >>
7979
steps:
8080
- checkout
81+
- when:
82+
condition:
83+
equal: [*windows-e2e-executor, << parameters.os >>]
84+
steps:
85+
- run:
86+
name: Install Node 18
87+
command: |
88+
nvm version
89+
nvm install 18.15.0
90+
nvm use 18.15.0
91+
nvm ls
92+
- run:
93+
name: Install Yarn
94+
command: |
95+
npm install -g yarn
96+
yarn --version
97+
- run:
98+
name: Check node version
99+
command: node -v
81100
- run: yarn config set workspaces-experimental true
82101
- run: yarn cache clean --force
83102
- run: yarn run production-build
@@ -103,8 +122,8 @@ jobs:
103122
- equal: [*windows-e2e-executor, << parameters.os >>]
104123
steps:
105124
- checkout
106-
- run: nvm install 12.22.7
107-
- run: nvm alias default 12.22.7
125+
- run: nvm install 18.15.0
126+
- run: nvm alias default 18.15.0
108127
- run: yarn config set workspaces-experimental true
109128
- run: yarn cache clean --force
110129
- run: yarn run production-build
@@ -234,7 +253,7 @@ jobs:
234253
key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
235254
- node/install:
236255
install-yarn: true
237-
node-version: '16.13'
256+
node-version: '18.15'
238257
- run: yarn run production-build
239258
- run: *install_cli
240259
- run:

0 commit comments

Comments
 (0)