Skip to content

Commit

Permalink
try nvm/npm
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed May 14, 2024
1 parent 1a64844 commit 12d66fa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 36 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/deploy-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,12 @@ jobs:
- name: Install build dependencies - Node and Yarn
run: |
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
| gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" \
| sudo tee /etc/apt/sources.list.d/nodesource.list
curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg \
| gpg --dearmor -o /usr/share/keyrings/yarnkey.gpg
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" \
| sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update -y
sudo apt install -y --no-install-recommends \
nodejs \
yarn
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 20
npm install --global corepack yarn
corepack enable
- name: Checkout
uses: actions/checkout@v4
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,12 @@ jobs:
- name: Install build dependencies - Node and Yarn
run: |
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
| gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" \
| sudo tee /etc/apt/sources.list.d/nodesource.list
curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg \
| gpg --dearmor -o /usr/share/keyrings/yarnkey.gpg
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" \
| sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update -y
sudo apt install -y --no-install-recommends \
nodejs \
yarn
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 20
npm install --global corepack yarn
corepack enable
- name: Checkout
uses: actions/checkout@v4
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/test_webrtc_leak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,12 @@ jobs:
- name: Install build dependencies - Node and Yarn
run: |
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
| gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" \
| tee /etc/apt/sources.list.d/nodesource.list
curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg \
| gpg --dearmor -o /usr/share/keyrings/yarnkey.gpg
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" \
| tee /etc/apt/sources.list.d/yarn.list
apt update -y
apt install -y --no-install-recommends \
nodejs \
yarn
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 20
npm install --global corepack yarn
corepack enable
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 12d66fa

Please sign in to comment.