Skip to content

Commit 27579f2

Browse files
authored
try force node version
1 parent ba82fe1 commit 27579f2

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

main.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
set -ex
33

44
if [[ $RUNNER_OS == Windows ]]; then
5-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash
6-
old_node_version=$(node --version)
7-
old_node_version=${old_node_version:1}
8-
nvm install 16
9-
nvm use 16
5+
export FORCE_NODE_VERSION=1
106
old_script_shell=$(npm config get script-shell)
117
# https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md#shells
128
npm config set script-shell 'C:\Windows\System32\bash.exe'
139
npm install --global "code-server@$INPUT_CODE_SERVER_VERSION" --unsafe-perm
1410
npm config set script-shell "$old_script_shell"
15-
nvm use "$old_node_version"
1611
else
1712
if [[ $INPUT_CODE_SERVER_VERSION == latest ]]; then
1813
curl -fsSL https://code-server.dev/install.sh | sh -s -- \

0 commit comments

Comments
 (0)