Skip to content

Commit

Permalink
Update workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Nov 22, 2024
1 parent a6a45f9 commit 14878f7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,17 @@ jobs:
run: echo "lockfile - $N_MAJOR"

- run: npm ci
# The [`ci`][1] command was [introduced][2] with npm 6.x, and is intended
# to be used in continuous integration environments. If npm 6.x or later
# is available, `npm ci` is executed to install dependencies. Otherwise,
# The [`ci`][1] command was [introduced][2] with npm@5, and is intended to
# be used in continuous integration environments. If npm@5 or later is
# installed, `npm ci` is executed to install dependencies. Otherwise,
# `npm install` is executed.
#
# [1]: https://docs.npmjs.com/cli/v10/commands/npm-ci
# [2]: https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable
if: steps.npm-version.outputs.major >= 6
#if: steps.npm-version.outputs.major >= 6
if: steps.lockfile-versio.outputs.version != null

- run: npm install
if: steps.npm-version.outputs.major < 6
if: steps.lockfile-version.outputs.version == null

- run: npm test

0 comments on commit 14878f7

Please sign in to comment.