Skip to content

Commit 95aa3a3

Browse files
chore: use Node.js 20 in CI VSCODE-586 (#770)
* chore: use Node.js 20 in CI VSCODE-586 * fix: try to resolve a regression of out of memory crashes of webpack
1 parent 1fc7714 commit 95aa3a3

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

.github/workflows/actions/test-and-build/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ runs:
7676

7777
- name: Build .vsix
7878
env:
79-
NODE_OPTIONS: "--require ./scripts/no-npm-list-fail.js"
79+
NODE_OPTIONS: "--require ./scripts/no-npm-list-fail.js --max_old_space_size=4096"
8080
# NOTE: --githubBranch is "The GitHub branch used to infer relative links in README.md."
8181
run: |
8282
npx vsce package --githubBranch main

.github/workflows/draft-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Setup Node.js Environment
3333
uses: actions/setup-node@v3
3434
with:
35-
node-version: 16.x
35+
node-version: 20.16.0
3636

3737
- name: Determine Next Version
3838
shell: bash

.github/workflows/publish-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Node.js Environment
1313
uses: actions/setup-node@v3
1414
with:
15-
node-version: 16.x
15+
node-version: 20.16.0
1616

1717
- name: Install npm
1818
run: npm install -g npm@8.19.4

.github/workflows/test-and-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup Node.js Environment
3131
uses: actions/setup-node@v3
3232
with:
33-
node-version: 16.x
33+
node-version: 20.16.0
3434

3535
- name: Run tests and build
3636
uses: ./.github/workflows/actions/test-and-build

webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ module.exports = (env, argv) => {
201201
process: 'process/browser',
202202
}),
203203
],
204+
watchOptions: {
205+
// For some systems, watching many files can result in a lot of CPU or memory usage
206+
// https://webpack.js.org/configuration/watch/#watchoptionsignored
207+
// don't use this pattern, if you have a monorepo with linked packages.
208+
ignored: /node_modules/,
209+
},
204210
});
205211

206212
return [

0 commit comments

Comments
 (0)