Skip to content

Commit a9b947c

Browse files
filipesilvaKeen Yee Liau
authored and
Keen Yee Liau
committed
ci: use windows-server-2019-vs2019:stable
1 parent 0f0a57f commit a9b947c

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

.circleci/config.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,14 @@ executors:
5757
resource_class: xlarge
5858

5959
windows-executor:
60+
# Same as https://circleci.com/orbs/registry/orb/circleci/windows, but named.
6061
working_directory: ~/ng
6162
resource_class: windows.medium
6263
shell: powershell.exe -ExecutionPolicy Bypass
6364
machine:
64-
# Windows preview image that includes the following:
65-
# - Visual Studio 2019 build tools
66-
# - Node 12
67-
# - yarn 1.17
68-
# - Python 3 3.7.4
69-
image: windows-server-2019-vs2019:201908-02
65+
# Contents of this image:
66+
# https://circleci.com/docs/2.0/hello-world-windows/#software-pre-installed-in-the-windows-image
67+
image: windows-server-2019-vs2019:stable
7068

7169
# Command Definitions
7270
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-commands
@@ -77,11 +75,10 @@ commands:
7775
- attach_workspace:
7876
at: *workspace_location
7977
setup_windows:
80-
steps:
81-
- run:
82-
# Need to install node and yarn before to ensure correct versions.
83-
name: Setup windows node environment
84-
command: ./.circleci/windows-env.ps1
78+
steps:
79+
- run: nvm install 12.1.0
80+
- run: nvm use 12.1.0
81+
- run: npm install -g [email protected]
8582
- run: node --version
8683
- run: yarn --version
8784

.circleci/windows-env.ps1

-9
This file was deleted.

0 commit comments

Comments
 (0)