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:
		
							
								
								
									
										4
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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 . .
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								build.sh
									
									
									
									
									
								
							@@ -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)."
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
```
 | 
			
		||||
 
 | 
			
		||||
@@ -94,7 +94,7 @@
 | 
			
		||||
      "./bin/config.yml"
 | 
			
		||||
    ],
 | 
			
		||||
    "targets": [
 | 
			
		||||
      "node14"
 | 
			
		||||
      "node18"
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  "optionalDependencies": {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user