Skip to content

Commit

Permalink
chore: run Netlify deploy on Node v16 (#4778) [ci skip]
Browse files Browse the repository at this point in the history
Signed-off-by: Outsider <outsideris@gmail.com>
Co-authored-by: Juerg B <44573692+juergba@users.noreply.github.com>
  • Loading branch information
outsideris and juergba committed Jan 19, 2022
1 parent f297790 commit 9fbf3ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/_data/supporters.js
Expand Up @@ -18,7 +18,7 @@
'use strict';

const {loadImage} = require('canvas');
const {writeFile, mkdir, rmdir} = require('fs').promises;
const {writeFile, mkdir, rm} = require('fs').promises;
const {resolve} = require('path');
const debug = require('debug')('mocha:docs:data:supporters');
const needle = require('needle');
Expand Down Expand Up @@ -225,7 +225,7 @@ const getSupporters = async () => {
}
);

await rmdir(SUPPORTER_IMAGE_PATH, {recursive: true});
await rm(SUPPORTER_IMAGE_PATH, {recursive: true, force: true});
debug('blasted %s', SUPPORTER_IMAGE_PATH);
await mkdir(SUPPORTER_IMAGE_PATH, {recursive: true});
debug('created %s', SUPPORTER_IMAGE_PATH);
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Expand Up @@ -14,8 +14,8 @@

[build.environment]
DEBUG = "mocha:docs*"
NODE_VERSION = "12"
RUBY_VERSION = "2.7.1"
NODE_VERSION = "16"
RUBY_VERSION = "2.7.2"

[context.deploy-preview]
command = "npm start docs"
Expand Down

0 comments on commit 9fbf3ae

Please sign in to comment.