parent
3ab623a080
commit
9ba1483c4e
1 changed files with 9 additions and 1 deletions
|
@ -9,7 +9,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: install node
|
- name: install node
|
||||||
id: node-install
|
id: node-install
|
||||||
run: apt update && apt -y install nodejs
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install -y ca-certificates curl gnupg
|
||||||
|
mkdir -p /etc/apt/keyrings
|
||||||
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
apt update
|
||||||
|
apt install -y nodejs
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue