Skip to content

Commit

Permalink
feat: run npm ci when a yarn.lock is present
Browse files Browse the repository at this point in the history
npm supports this as of v7+ and it is a better option than `npm install` until #6 is implemented
  • Loading branch information
dominykas committed Jan 4, 2022
1 parent de5b06b commit 4b7e44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/node-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
id: prepare-install-script
shell: bash
run: |
if [ -f package-lock.json ] || [ -f npm-shrinkwrap.json ]
if [ -f package-lock.json ] || [ -f npm-shrinkwrap.json ] || [ -f yarn.lock ]
then
echo "::set-output name=install-command::npm ci"
else
Expand Down

0 comments on commit 4b7e44d

Please sign in to comment.