Skip to content

Pin NPM version installed by CI pipelines #6

@achrinza

Description

@achrinza

When LoopBack's CI pipelines started incorporating GitHub Actions, npm install --global npm was added as a step performed before installation. This was to prevent an issue where, under certain circumstances, the Mocha tests would silently pass without even executing the tests themselves. However, a side-effect was that this would install the latest NPM version. This meant that CI pipelines which still tested against Node.js v10 broke due to incompatibility with the newly-relesaed NPM v8.

The NPM version policy is as follows:

  1. Use the latest supported NPM version for that specific Node.js version.
  2. Where there may be a gap between NPM major versions in the test matrix, add an additional x86 Linux test matrix permutation on GitHub Actions.

This issue is to track the updating of CI pipelines to use pinned NPM major versions.

Repos to update:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions