diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 72f89866..c64d23d8 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,10 +5,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up Node.js 12.x + - name: Set up Node.js 14.x uses: actions/setup-node@v1 with: - node-version: 12.x + node-version: 14.x - name: Install dependencies run: yarn install --dev - name: Lint files diff --git a/Dockerfile b/Dockerfile index b11871d3..4324f49b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12-alpine as builder +FROM node:14-alpine as builder RUN mkdir -p /opt/autoupdate/dist @@ -8,7 +8,7 @@ COPY . /opt/autoupdate/ RUN yarn install --frozen-lockfile && yarn run build -FROM node:12-alpine as runner +FROM node:14-alpine as runner LABEL com.github.actions.name="Auto-update pull requests with changes from their base branch" LABEL com.github.actions.description="A GitHub Action that auto-updates PRs with changes from their base branch" diff --git a/package.json b/package.json index d58cace4..9abcb7a6 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,11 @@ "test:watch": "jest --watchAll" }, "dependencies": { - "@actions/github": "^4.0.0", "@actions/core": "^1.2.6", + "@actions/github": "^4.0.0", "@octokit/types": "^5.5.0", - "@types/node": "^12.12.6", - "@zeit/ncc": "^0.22.3", + "@types/node": "^14.14.22", + "@vercel/ncc": "^0.27.0", "typescript": "^4.1.3" }, "devDependencies": { diff --git a/tsconfig.json b/tsconfig.json index 3176bf02..9b9d4ecb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "types": ["node", "jest"], - "target": "ES2019", + "target": "ES2020", "module": "commonjs", "strict": true, "esModuleInterop": true, diff --git a/yarn.lock b/yarn.lock index 70efddb5..0cb43c86 100644 --- a/yarn.lock +++ b/yarn.lock @@ -702,10 +702,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-14.11.8.tgz#fe2012f2355e4ce08bca44aeb3abbb21cf88d33f" integrity sha512-KPcKqKm5UKDkaYPTuXSx8wEP7vE9GnuaXIZKijwRYcePpZFDVuy2a57LarFKiORbHOuTOOwYzxVxcUzsh2P2Pw== -"@types/node@^12.12.6": - version "12.12.67" - resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.67.tgz#4f86badb292e822e3b13730a1f9713ed2377f789" - integrity sha512-R48tgL2izApf+9rYNH+3RBMbRpPeW3N8f0I9HMhggeq4UXwBDqumJ14SDs4ctTMhG11pIOduZ4z3QWGOiMc9Vg== +"@types/node@^14.14.22": + version "14.14.22" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.22.tgz#0d29f382472c4ccf3bd96ff0ce47daf5b7b84b18" + integrity sha512-g+f/qj/cNcqKkc3tFqlXOYjrmZA+jNBiDzbP3kH+B+otKFqAdPgVTGP1IeKRdMml/aE69as5S4FqtxAbl+LaMw== "@types/normalize-package-data@^2.4.0": version "2.4.0" @@ -840,10 +840,10 @@ "@typescript-eslint/types" "4.14.2" eslint-visitor-keys "^2.0.0" -"@zeit/ncc@^0.22.3": - version "0.22.3" - resolved "https://registry.yarnpkg.com/@zeit/ncc/-/ncc-0.22.3.tgz#fca6b86b4454ce7a7e1e7e755165ec06457f16cd" - integrity sha512-jnCLpLXWuw/PAiJiVbLjA8WBC0IJQbFeUwF4I9M+23MvIxTxk5pD4Q8byQBSPmHQjz5aBoA7AKAElQxMpjrCLQ== +"@vercel/ncc@^0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.27.0.tgz#c0cfeebb0bebb56052719efa4a0ecc090a932c76" + integrity sha512-DllIJQapnU2YwewIhh/4dYesmMQw3h2cFtabECc/zSJHqUbNa0eJuEkRa6DXbZvh1YPWBtYQoPV17NlDpBw1Vw== abab@^2.0.3: version "2.0.5"