Skip to content

Commit

Permalink
Update workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Nov 23, 2024
1 parent 5ffa372 commit 2e57810
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ jobs:
- id: clean-install-v3
name: Clean install with lockfileVersion >= 3
run: npm ci
if: steps.lockfile-version.outputs.version >= 3 && steps.npm-version.outputs.major >= 7
if: steps.npm-version.outputs.major >= 7 && steps.lockfile-version.outputs.version >= 3

- id: clean-install-v3-compat
name: Install with lockfileVersion >= 3
run: npm install
if: steps.lockfile-version.outputs.version <= 3 && steps.lockfile-version.outputs.version != null && steps.npm-version.outputs.major < 7 && steps.npm-version.outputs.major >= 5
if: steps.npm-version.outputs.major < 7 && steps.npm-version.outputs.major >= 5 && steps.lockfile-version.outputs.version >= 3

- id: clean-install
name: Clean install
Expand All @@ -101,11 +101,11 @@ jobs:
# [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.lockfile-version.outputs.version != null && steps.npm-version.outputs.major >= 5
if: steps.npm-version.outputs.major >= 5 && steps.lockfile-version.outputs.version != null
&& steps.clean-install-v3.outcome == 'skipped' && steps.clean-install-v3-compat.outcome == 'skipped'

- run: npm install
name: Install
if: steps.lockfile-version.outputs.version == null || steps.npm-version.outputs.major < 5
if: steps.npm-version.outputs.major < 5 || steps.lockfile-version.outputs.version == null

- run: npm test

0 comments on commit 2e57810

Please sign in to comment.