Set Node version in a single place (#6534)

This should make it much easier to update.  Also use 18.15.0
specifically since that is what VS Code ships with.

Additionally, it fixes the post-install script being skipped due to
a Yarn v1 bug that happens when Yarn installs node-gyp, which
it does because 18.18 onward stopped bundling node-gyp.
This commit is contained in:
Asher
2023-11-14 12:45:56 -09:00
committed by GitHub
parent 239df56634
commit da254c39ee
5 changed files with 26 additions and 26 deletions

View File

@@ -50,11 +50,11 @@ jobs:
files: |
docs/**
- name: Install Node.js v18
- name: Install Node.js
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/setup-node@v4
with:
node-version: "18"
node-version-file: .node-version
cache: "yarn"
- name: Install doctoc
@@ -115,11 +115,11 @@ jobs:
files_ignore: |
lib/vscode/**
- name: Install Node.js v18
- name: Install Node.js
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/setup-node@v4
with:
node-version: "18"
node-version-file: .node-version
- name: Fetch dependencies from cache
if: steps.changed-files.outputs.any_changed == 'true'
@@ -170,11 +170,11 @@ jobs:
files_ignore: |
lib/vscode/**
- name: Install Node.js v18
- name: Install Node.js
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/setup-node@v4
with:
node-version: "18"
node-version-file: .node-version
- name: Fetch dependencies from cache
if: steps.changed-files.outputs.any_changed == 'true'
@@ -224,10 +224,10 @@ jobs:
- name: Patch Code
run: quilt push -a
- name: Install Node.js v18
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
node-version-file: .node-version
- name: Fetch dependencies from cache
id: cache-node-modules
@@ -298,10 +298,10 @@ jobs:
- name: Install system dependencies
run: sudo apt update && sudo apt install -y libkrb5-dev
- name: Install Node.js v18
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
node-version-file: .node-version
- name: Fetch dependencies from cache
id: cache-node-modules
@@ -357,10 +357,10 @@ jobs:
- name: Install system dependencies
run: sudo apt update && sudo apt install -y libkrb5-dev
- name: Install Node.js v18
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
node-version-file: .node-version
- name: Fetch dependencies from cache
id: cache-node-modules