diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b33cee755282f71ed2359f94bda1a7cbc241654..4901c700f80c205c168e2e1d3a4f5f9a62335178 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,14 +10,14 @@ jobs: - name: Use Node.js uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 16 - run: yarn - run: yarn lint test: runs-on: ubuntu-latest strategy: matrix: - node_version: [12, 14, 16] + node_version: [14, 16, 18] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node_version }} diff --git a/Dockerfile b/Dockerfile index c9c379c3c0749b745e2adeba7800a192969f5f6d..9d6cdad68413044ad68360c9eeb5eef2679a13ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM node:14-alpine AS BUILD +FROM node:16-alpine AS BUILD COPY . /tmp/src # install some dependencies needed for the build process RUN apk add --no-cache -t build-deps make gcc g++ python ca-certificates libc-dev wget git RUN cd /tmp/src \ && yarn -FROM node:14-alpine +FROM node:16-alpine ENV NODE_ENV=production COPY --from=BUILD /tmp/src/build /build COPY --from=BUILD /tmp/src/config /config diff --git a/changelog.d/811.removal b/changelog.d/811.removal new file mode 100644 index 0000000000000000000000000000000000000000..711123c6fa380f99873aa4f66df63cfb562c5b88 --- /dev/null +++ b/changelog.d/811.removal @@ -0,0 +1 @@ +Node.JS 12 is now unsupported, please upgrade to Node.JS 14 or later. Node.JS 16 becomes the new default version. \ No newline at end of file diff --git a/package.json b/package.json index 25dea0c07e06111771633aaf1814986c635d288a..1ede9b40a26aa097fe3a40f116350acb6abef1f4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "discordas.js", "engines": { "npm": "please-use-yarn", - "node": "12.x - 16.x" + "node": "14.x - 18.x" }, "scripts": { "test": "mocha -r ts-node/register test/config.ts test/test_*.ts test/**/test_*.ts", @@ -69,7 +69,7 @@ "@types/marked": "^1.1.0", "@types/mime": "^2.0.2", "@types/mocha": "^7.0.2", - "@types/node": "^12", + "@types/node": "^14", "@typescript-eslint/eslint-plugin": "^5.4.0", "@typescript-eslint/parser": "^5.4.0", "chai": "^4.2.0",