File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22set -ex
33
44if [[ $RUNNER_OS == Windows ]]; then
5+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash
56 old_node_version=$( node --version)
67 old_node_version=${old_node_version: 1}
78 nvm install 16
89 nvm use 16
910 old_script_shell=$( npm config get script-shell)
10- npm config set script-shell ' C:\Program Files\git\bin\bash.exe'
11- npm install --global " code-server@$INPUT_VERSION " --unsafe-perm
11+ # https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md#shells
12+ npm config set script-shell ' C:\Windows\System32\bash.exe'
13+ npm install --global " code-server@$INPUT_CODE_SERVER_VERSION " --unsafe-perm
1214 npm config set script-shell " $old_script_shell "
1315 nvm use " $old_node_version "
1416else
1517 curl -fsSL https://code-server.dev/install.sh | sh -s -- \
16- --prefix=/usr/local --version " $INPUT_VERSION "
18+ --prefix=/usr/local --version " $INPUT_CODE_SERVER_VERSION "
1719fi
You can’t perform that action at this time.
0 commit comments