Skip to content

Commit 4447912

Browse files
[ci] Use npm ci instead of npm install (#690)
1 parent 17d291d commit 4447912

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ jobs:
2020
with:
2121
node-version: "lts/*"
2222

23-
- run: npm install
23+
- run: npm ci
2424
- run: npm run lint:ci
2525
- name: Detect changes
2626
id: changes
2727
run: echo "count=$(git status --porcelain=v1 2>/dev/null | wc -l)" >> $GITHUB_OUTPUT
2828
- name: Fail if there are uncommitted changes
2929
if: steps.changes.outputs.count > 0
3030
run: |
31+
git diff
3132
echo "::error title=Uncommitted changes::run \"npm run lint\" to fix"
3233
exit 1

0 commit comments

Comments
 (0)