diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbe9ecaa..84111779 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,6 @@ env: DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} NDLA_RELEASES: ${{ secrets.NDLA_RELEASES }} GH_TOKEN: ${{ secrets.CI_NOW_GH_TOKEN }} - NOW_TOKEN: ${{ secrets.NOW_TOKEN }} GH_PR_NUMBER: ${{ github.event.number }} GH_PR_REPO: ${{ github.event.pull_request.head.repo.full_name }} GH_PR_SHA: ${{ github.event.pull_request.head.sha }} @@ -22,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '18.12' + node-version: '20.6' - name: "Login to ECR repo" run: RES=$(aws sts assume-role --role-arn $CI_RELEASE_ROLE --role-session-name github-actions-ecr-login) AWS_ACCESS_KEY_ID=$(echo $RES | jq -r .Credentials.AccessKeyId) diff --git a/Dockerfile b/Dockerfile index bf4ba010..35c5c58b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ### Build stage -FROM node:18.12-alpine as builder +FROM node:20.6-alpine as builder ENV HOME=/home/app ENV APP_PATH=$HOME/graphql-api @@ -18,7 +18,7 @@ COPY src $APP_PATH/src RUN yarn ncc ### Run stage -FROM node:18.12-alpine +FROM node:20.6-alpine WORKDIR /home/app/graphql-api COPY --from=builder /home/app/graphql-api/build/index.js index.js diff --git a/package.json b/package.json index 889b65fa..8350d03f 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,9 @@ "resolutions": { "@types/serve-static": "1.13.10" }, + "engines": { + "node": ">=20.6.0" + }, "dependencies": { "@apollo/server": "^4.9.3", "@graphql-tools/mock": "^8.7.10",