Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cschanaj committed Apr 17, 2023
1 parent 1dd1799 commit 9b71bfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ jobs:
strategy:
matrix:
node-version: [ 14, 16, 18 ]
os: [ ubuntu-latest, macos-latest ]
os: [ ubuntu-latest, macos-latest, windows-latest ]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
- name: Setup environment for NVM on Linux
if: ${{ matrix.os == 'ubuntu-latest' }} || ${{ matrix.os == 'macos-latest' }}
run: |
export NVM_DIR="$HOME/.nvm"
source "$NVM_DIR/nvm.sh"
- name: Use Node.js ${{ matrix.node-version }}
nvm install ${{ matrix.node-version }}
nvm install-latest-npm
- name: Run npm install --build-from-source
Expand Down

0 comments on commit 9b71bfe

Please sign in to comment.