We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba82fe1 commit 27579f2Copy full SHA for 27579f2
1 file changed
main.sh
@@ -2,17 +2,12 @@
2
set -ex
3
4
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
+ export FORCE_NODE_VERSION=1
10
old_script_shell=$(npm config get script-shell)
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
14
npm config set script-shell "$old_script_shell"
15
- nvm use "$old_node_version"
16
else
17
if [[ $INPUT_CODE_SERVER_VERSION == latest ]]; then
18
curl -fsSL https://code-server.dev/install.sh | sh -s -- \
0 commit comments