Skip to content

Commit

Permalink
nvm in macos
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohansebas committed Feb 2, 2025
1 parent 17d1e40 commit e213c9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: iojs-ci
name: macos-ci

on:
push:
Expand Down Expand Up @@ -137,6 +137,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install nvm
shell: bash -eo pipefail -l {0}
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
- name: Install Node.js ${{ matrix.node-version }}
shell: bash -eo pipefail -l {0}
run: |
Expand All @@ -147,8 +151,6 @@ jobs:
if [[ "$(npm -v)" == 1.1.* ]]; then
nvm exec npm npm install -g [email protected]
ln -fs "$(which npm)" "$(dirname "$(nvm which npm)")/npm"
else
sed -i '1s;^.*$;'"$(printf '#!%q' "$(nvm which npm)")"';' "$(readlink -f "$(which npm)")"
fi
npm config set strict-ssl false
fi
Expand Down

0 comments on commit e213c9d

Please sign in to comment.