Skip to content

Commit 9fbf3ae

Browse files
outsiderisjuergba
andauthored
chore: run Netlify deploy on Node v16 (#4778) [ci skip]
Signed-off-by: Outsider <outsideris@gmail.com> Co-authored-by: Juerg B <44573692+juergba@users.noreply.github.com>
1 parent f297790 commit 9fbf3ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/_data/supporters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'use strict';
1919

2020
const {loadImage} = require('canvas');
21-
const {writeFile, mkdir, rmdir} = require('fs').promises;
21+
const {writeFile, mkdir, rm} = require('fs').promises;
2222
const {resolve} = require('path');
2323
const debug = require('debug')('mocha:docs:data:supporters');
2424
const needle = require('needle');
@@ -225,7 +225,7 @@ const getSupporters = async () => {
225225
}
226226
);
227227

228-
await rmdir(SUPPORTER_IMAGE_PATH, {recursive: true});
228+
await rm(SUPPORTER_IMAGE_PATH, {recursive: true, force: true});
229229
debug('blasted %s', SUPPORTER_IMAGE_PATH);
230230
await mkdir(SUPPORTER_IMAGE_PATH, {recursive: true});
231231
debug('created %s', SUPPORTER_IMAGE_PATH);

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
[build.environment]
1616
DEBUG = "mocha:docs*"
17-
NODE_VERSION = "12"
18-
RUBY_VERSION = "2.7.1"
17+
NODE_VERSION = "16"
18+
RUBY_VERSION = "2.7.2"
1919

2020
[context.deploy-preview]
2121
command = "npm start docs"

0 commit comments

Comments
 (0)