Skip to content

Commit

Permalink
refresh env PATH var
Browse files Browse the repository at this point in the history
Signed-off-by: midays <[email protected]>
  • Loading branch information
midays committed Nov 25, 2024
1 parent bd6a6bf commit 923d527
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/windows-nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,29 @@ jobs:
runs-on: ${{ needs.start-ec2-instance.outputs.instance_label }}
steps:

# - name: Install Chocolatey
# run: |
# Set-ExecutionPolicy Bypass -Scope Process -Force;
# [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
# iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# shell: powershell
#
# - name: Install VSCode
# run: choco install vscode -y
# shell: powershell
#
# - name: Install Node.js
# run: choco install nodejs -y
# shell: powershell
#
# - name: Update PATH for VSCode
# shell: powershell
# run: |
# $env:PATH += ";C:\Program Files\Microsoft VS Code\bin"
- name: Install Chocolatey
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
shell: powershell

- name: Install VSCode
run: choco install vscode -y
shell: powershell

- name: Install Node.js
run: choco install nodejs -y
shell: powershell

# - name: Refresh PATH after Node.js Installation
# run: refreshenv
# shell: powershell
- name: Update PATH for VSCode
shell: powershell
run: |
$env:PATH += ";C:\Program Files\Microsoft VS Code\bin"
- name: Refresh PATH after Node.js Installation
run: refreshenv
shell: powershell

- name: Check Env PATH variable
shell: powershell
Expand Down

0 comments on commit 923d527

Please sign in to comment.