Skip to content

Commit 4413378

Browse files
committed
nvm in macos
1 parent 17d1e40 commit 4413378

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/macos.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: iojs-ci
1+
name: macos-ci
22

33
on:
44
push:
@@ -137,6 +137,10 @@ jobs:
137137

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

0 commit comments

Comments
 (0)