summaryrefslogtreecommitdiffstats
path: root/jjb/ubuntu-latest-nodejs.sh
blob: 04e3a10fbaed7bb6a4bcd264b69a158b285e4ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2021 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
echo "---> ubuntu-latest-nodejs.sh"

set -eufo pipefail

sudo apt update
sudo apt install -y nodejs npm
sudo npm install -g n
sudo n stable