Skip to content

Update node.yml

Update node.yml #6

Workflow file for this run

name: Install Node.js
on: [push, pull_request]
jobs:
install-node:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js 18 using Chocolatey
run: |
choco install nodejs --version=18.0.0 -y
- name: Setup Node.js 18 using n (if necessary)
shell: pwsh
run: |
$defaultVersion = "18"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/tj/n/master/bin/n" -OutFile "$HOME\n"
& "$HOME\n" $defaultVersion