Skip to content

Update node.yml

Update node.yml #9

Workflow file for this run

name: Install Node.js
on:
push
jobs:
install-node:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
run: |
$default_version = "18" # Replace this with your desired Node.js version
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/tj/n/master/bin/n" -OutFile "$env:USERPROFILE\n"
bash "$env:USERPROFILE\n" $default_version
- name: Verify Node.js installation
run: |
node -v
npm -v