1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

migrate to node 18

This commit is contained in:
Massimo Candela
2023-02-09 00:46:57 +01:00
parent 0e7e118f6e
commit 6130e03c21
5 changed files with 10 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ jobs:
- name: Set up Javascript/Node
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '18'
- name: Check out code
uses: actions/checkout@v3
@@ -51,7 +51,7 @@ jobs:
- name: Set up Javascript/Node
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '18'
- name: Check out code
uses: actions/checkout@v3

View File

@@ -1,5 +1,5 @@
# -- trivial container for BGPalerter
FROM node:14.20.0-alpine as build
FROM node:18.14.0-alpine as build
WORKDIR /opt/bgpalerter
COPY . .

View File

@@ -7,11 +7,11 @@ npm ci --silent
npm run compile
./node_modules/.bin/pkg ./dist/package.json --targets node14-win-x64 --output bin/bgpalerter-win-x64 --loglevel=error
./node_modules/.bin/pkg ./dist/package.json --targets node18-win-x64 --output bin/bgpalerter-win-x64 --loglevel=error
./node_modules/.bin/pkg ./dist/package.json --targets node14-linux-x64 --output bin/bgpalerter-linux-x64 --loglevel=error
./node_modules/.bin/pkg ./dist/package.json --targets node18-linux-x64 --output bin/bgpalerter-linux-x64 --loglevel=error
./node_modules/.bin/pkg ./dist/package.json --targets node14-macos-x64 --output bin/bgpalerter-macos-x64 --loglevel=error
./node_modules/.bin/pkg ./dist/package.json --targets node18-macos-x64 --output bin/bgpalerter-macos-x64 --loglevel=error
echo "--> BGPalerter compiled in bin/ (ignore the warnings about files that cannot be resolved)."

View File

@@ -5,7 +5,7 @@ Some fast commands are below. The complete documentation (including other platfo
## With apt (e.g., debian)
```bash
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
curl -sL https://deb.nodesource.com/setup_18.x | sudo bash -
sudo apt install nodejs
```
@@ -14,12 +14,12 @@ sudo apt install nodejs
```bash
brew update
brew install node@14
brew install node@18
```
## With yum (e.g., centos)
```bash
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
curl -sL https://deb.nodesource.com/setup_18.x | sudo bash -
sudo yum install nodejs
```

View File

@@ -94,7 +94,7 @@
"./bin/config.yml"
],
"targets": [
"node14"
"node18"
]
},
"optionalDependencies": {