diff --git a/.github/workflows/gh-release.yml b/.github/workflows/gh-release.yml index 7170fa40d2..b5c5de5e43 100644 --- a/.github/workflows/gh-release.yml +++ b/.github/workflows/gh-release.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 - run: yarn install diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 22ab362c71..65effc93cc 100755 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 - run: yarn - name: build run: yarn build diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 9ee32573e3..564d64c806 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -33,7 +33,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 - uses: marceloprado/has-changed-path@v1 id: changed-types diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b01456a183..70ca9a047c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 #Identify changes - uses: marceloprado/has-changed-path@v1 diff --git a/deploy/k8s/README.md b/deploy/k8s/README.md index 09f144981d..c34f6d1ba9 100644 --- a/deploy/k8s/README.md +++ b/deploy/k8s/README.md @@ -30,7 +30,7 @@ spec: initContainers: - name: prepare imagePullPolicy: IfNotPresent - image: node:14-alpine + image: node:18-alpine command: - sh - -c diff --git a/deploy/k8s/deploy.yaml b/deploy/k8s/deploy.yaml index e9c0aec068..8f4090dcd0 100644 --- a/deploy/k8s/deploy.yaml +++ b/deploy/k8s/deploy.yaml @@ -24,7 +24,7 @@ spec: initContainers: - name: prepare imagePullPolicy: IfNotPresent - image: node:14-alpine + image: node:18-alpine command: - sh - -c diff --git a/package.json b/package.json index 1afd8967ac..05f5a037f6 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "@babel/preset-env": "^7.16.11", "@octokit/request": "^5.6.3", "@types/cron-converter": "^1", - "@types/node": "^14.18.10", + "@types/node": "^18.16.10", "@types/node-fetch": "2.6.2", "@typescript-eslint/eslint-plugin": "^5.10.2", "@typescript-eslint/parser": "^5.10.2", diff --git a/packages/cli/package.json b/packages/cli/package.json index 3e6c7a61a8..513c8d0c75 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -48,7 +48,7 @@ }, "devDependencies": { "@oclif/dev-cli": "^1.26.10", - "@types/node": "^14.18.10", + "@types/node": "^18.16.10", "@types/rimraf": "^3.0.2", "@types/websocket": "^1", "eslint": "^8.8.0", diff --git a/packages/node/Dockerfile b/packages/node/Dockerfile index 9548515f56..10f091d721 100644 --- a/packages/node/Dockerfile +++ b/packages/node/Dockerfile @@ -1,10 +1,10 @@ # production images -FROM node:16 as builder +FROM node:18 as builder ARG RELEASE_VERSION ENTRYPOINT ["subql-node"] RUN npm i -g --unsafe-perm @subql/node@${RELEASE_VERSION} -FROM node:16-alpine +FROM node:18-alpine ENV TZ utc RUN apk add --no-cache tini git curl diff --git a/packages/query/Dockerfile b/packages/query/Dockerfile index f299923c63..17df6f163b 100644 --- a/packages/query/Dockerfile +++ b/packages/query/Dockerfile @@ -1,9 +1,9 @@ # production images -FROM node:16 as builder +FROM node:18 as builder ARG RELEASE_VERSION RUN npm i -g --unsafe-perm @subql/query@${RELEASE_VERSION} -FROM node:16-alpine +FROM node:18-alpine ENV TZ utc RUN apk add --no-cache tini diff --git a/yarn.lock b/yarn.lock index f806f97836..8308a5539a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3958,7 +3958,7 @@ __metadata: "@typechain/ethers-v5": 10.2.0 "@types/ejs": ^3.1.0 "@types/inquirer": ^8.2.0 - "@types/node": ^14.18.10 + "@types/node": ^18.16.10 "@types/rimraf": ^3.0.2 "@types/websocket": ^1 algosdk: ^1.19.0 @@ -4968,13 +4968,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^14.18.10": - version: 14.18.16 - resolution: "@types/node@npm:14.18.16" - checksum: 1999799309dc8620a2adf9a5d5e48416af87321bae4c950b4aa8018fcef2c3b6c1fcf98c39eae06f6492c03a643a5a44e2bb3750cd2574d9cf7eac33bac50e24 - languageName: node - linkType: hard - "@types/node@npm:^15.6.1": version: 15.14.9 resolution: "@types/node@npm:15.14.9" @@ -4982,6 +4975,13 @@ __metadata: languageName: node linkType: hard +"@types/node@npm:^18.16.10": + version: 18.16.10 + resolution: "@types/node@npm:18.16.10" + checksum: 1db35543ae98d4a98731037a11a9478480d1260ff3778da70b9a137a3023666d20bab1573b584c401058f76c0d5f7dfbbc157b70a059452e086c8da5639cc653 + languageName: node + linkType: hard + "@types/normalize-package-data@npm:^2.4.0": version: 2.4.1 resolution: "@types/normalize-package-data@npm:2.4.1" @@ -16675,7 +16675,7 @@ __metadata: "@babel/preset-env": ^7.16.11 "@octokit/request": ^5.6.3 "@types/cron-converter": ^1 - "@types/node": ^14.18.10 + "@types/node": ^18.16.10 "@types/node-fetch": 2.6.2 "@typescript-eslint/eslint-plugin": ^5.10.2 "@typescript-eslint/parser": ^5.10.2