-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid failure if
@types/node
is already 12.12
- Loading branch information
1 parent
f83be76
commit 9da34a6
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,11 +46,13 @@ jobs: | |
# `npm install` on Linux. | ||
npm install | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "github-actions[bot]" | ||
# The period in `git add --all .` ensures that we stage deleted files too. | ||
git add --all . | ||
git commit -m "Use @types/node=${NODE_TYPES_VERSION}" | ||
if [ ! -z "$(git status --porcelain)" ]; then | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "github-actions[bot]" | ||
# The period in `git add --all .` ensures that we stage deleted files too. | ||
git add --all . | ||
git commit -m "Use @types/node=${NODE_TYPES_VERSION}" | ||
fi | ||
- name: Check generated JS | ||
run: .github/workflows/script/check-js.sh | ||
|