Skip to content

Commit

Permalink
ci: Revert removing husky and lint-staged (#572)"
Browse files Browse the repository at this point in the history
This reverts commit 0ed12e5.
  • Loading branch information
peaceiris committed Mar 6, 2021
1 parent 07f38c6 commit aa3761f
Show file tree
Hide file tree
Showing 5 changed files with 1,020 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ jobs:
- name: Run ncc
run: npm run build

- name: Remove lint-staged husky
if: github.ref == 'refs/heads/main'
run: |
npm uninstall lint-staged husky
git checkout package-lock.json package.json
- name: Setup mdBook
if: github.ref == 'refs/heads/main'
uses: peaceiris/[email protected]
Expand Down
2 changes: 2 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npm ci
git remote prune origin
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
Loading

0 comments on commit aa3761f

Please sign in to comment.