Skip to content

Commit

Permalink
chore(NODE-6634): pin NPM to 10 when Node version is 18 (#745)
Browse files Browse the repository at this point in the history
Co-authored-by: Neal Beeken <neal.beeken@mongodb.com>
  • Loading branch information
durran and nbbeeken authored Jan 15, 2025
1 parent 1fed073 commit eca63c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
21 changes: 11 additions & 10 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,17 @@ tasks:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: run tests
- name: node-tests-latest
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: latest
- func: install dependencies
- func: run tests
vars:
TEST_TARGET: node
# TODO(NODE-6662): Fix tests on latest.
# - name: node-tests-latest
# tags: ["node"]
# commands:
# - func: fetch source
# vars:
# NODE_LTS_VERSION: latest
# - func: install dependencies
# - func: run tests
# vars:
# TEST_TARGET: node
- name: web-tests
tags: ["web"]
commands:
Expand Down
5 changes: 2 additions & 3 deletions .evergreen/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ set -o errexit # Exit the script with error if any of the commands fail
## a full nodejs version, in the format v<major>.<minor>.patch
export NODE_LTS_VERSION=${NODE_LTS_VERSION:-16}
# npm version can be defined in the environment for cases where we need to install
# a version lower than latest to support EOL Node versions.
export NPM_VERSION=${NPM_VERSION:-latest}

# a version lower than latest to support EOL Node versions. When not provided will
# be handled by this script in drivers tools.
source $DRIVERS_TOOLS/.evergreen/install-node.sh

npm install "${NPM_OPTIONS}"
Expand Down

0 comments on commit eca63c9

Please sign in to comment.