From 78d321d7d62c19a4d8b96e68837cf0e10d1fe748 Mon Sep 17 00:00:00 2001 From: Rui Saraiva Date: Sun, 24 Jan 2021 14:40:37 +0000 Subject: [PATCH] chore(node): upgrade Node.js to v14 (#432) --- .eslintrc.json | 6 ++++++ .github/workflows/lint.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/tests.yml | 4 ++-- .nvmrc | 2 +- pages/api/favycon.ts | 4 ++-- 6 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 884a0e4..e861523 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -46,6 +46,12 @@ "rules": { "@typescript-eslint/no-var-requires": "off" } + }, + { + "files": ["components/**/*.stories.tsx", "pages/api/**/*.ts"], + "rules": { + "import/no-anonymous-default-export": "off" + } } ] } diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7d1ad44..2b59849 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,10 +9,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Use Node.js 12 + - name: Use Node.js 14 uses: actions/setup-node@v2 with: - node-version: "12" + node-version: "14" - name: Install dependencies uses: bahmutov/npm-install@v1 - name: Lint Scripts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87e41af..40ca75c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,10 +12,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Use Node.js 12 + - name: Use Node.js 14 uses: actions/setup-node@v2 with: - node-version: '12' + node-version: '14' - name: Install dependencies uses: bahmutov/npm-install@v1 - name: Cache Next.js build cache diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ea66b8..859e087 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,10 +9,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 12 + - name: Use Node.js 14 uses: actions/setup-node@v2 with: - node-version: "12" + node-version: "14" - name: Install dependencies uses: bahmutov/npm-install@v1 diff --git a/.nvmrc b/.nvmrc index 4a41167..c91434a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -12.20.0 +14.15.4 diff --git a/pages/api/favycon.ts b/pages/api/favycon.ts index 65f949f..2913e84 100644 --- a/pages/api/favycon.ts +++ b/pages/api/favycon.ts @@ -58,7 +58,7 @@ export default async (req: MulterApiRequest, res: NextApiResponse) => { .toBuffer() .then((scaledPng) => { zip.addFile(`icons/favicon-${size}.png`, scaledPng) - resolve() + resolve(true) }) }) }) @@ -72,7 +72,7 @@ export default async (req: MulterApiRequest, res: NextApiResponse) => { .then(async (scaledPng) => { const ico = await convert(scaledPng) zip.addFile('icons/favicon.ico', ico) - resolve() + resolve(true) }) })