Skip to content

Commit

Permalink
chore: upgrade node version to v18 in build environment
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyhom committed Sep 5, 2022
1 parent 25d4e21 commit 91cc784
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup NodeJS
uses: actions/[email protected]
with:
node-version: 14
node-version: 18
- name: Setup pnpm
uses: pnpm/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup NodeJS
uses: actions/[email protected]
with:
node-version: 14
node-version: 18
- name: Setup pnpm
uses: pnpm/[email protected]
with:
Expand Down
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ scripts
.jshintrc
.eslintrc*
.github
.husky
.eslintignore
.lintstagedrc.
.prettierignore
.prettierrc
commitlint.config.js

#editor settings
.vscode
Expand Down
2 changes: 1 addition & 1 deletion scripts/add-banner.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from "path";
import { promises as fs } from "fs";
import { fileURLToPath } from "url";
import packageJson from "../package.json";
import packageJson from "../package.json" assert { type: "json" }; // Import assertions became required after v17.5.0 (related to this change:github.com/nodejs/node/pull/40785).
import glob from "fast-glob";

const __dirname = fileURLToPath(import.meta.url);
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-html.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from "path";
import { promises as fs } from "fs";
import { fileURLToPath } from "url";
import packageJson from "../package.json";
import packageJson from "../package.json" assert { type: "json" }; // Import assertions became required after v17.5.0 (related to this change:github.com/nodejs/node/pull/40785).
import glob from "fast-glob";

const __dirname = fileURLToPath(import.meta.url);
Expand Down

0 comments on commit 91cc784

Please sign in to comment.