Skip to content

Commit af178b8

Browse files
committed
Update workflow.
1 parent 9260f11 commit af178b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/node.js.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ jobs:
8989
# [1]: https://docs.npmjs.com/cli/v10/commands/npm-ci
9090
# [2]: https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable
9191
#if: steps.npm-version.outputs.major >= 6
92-
if: steps.lockfile-version.outputs.version != null
92+
if: steps.lockfile-version.outputs.version != null && steps.npm-version.outputs.major >= 5
9393

9494
- run: npm install
95-
if: steps.lockfile-version.outputs.version == null
95+
if: steps.lockfile-version.outputs.version == null || steps.npm-version.outputs.major < 5
9696

9797
- run: npm test

0 commit comments

Comments
 (0)