Skip to content

Commit

Permalink
Run build in pre-push
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Feb 26, 2024
1 parent fa9d772 commit 5f78b0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ jobs:

- run: pnpm install
- run: pnpm verify
- run: pnpm build

- if: github.ref == 'refs/heads/main'
run: pnpm build

- if: github.ref == 'refs/heads/main'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Build
- name: Verify dist
run: git diff --exit-code dist/index.js
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pnpm build

git add dist
git diff --staged --quiet || git commit -m 'Build'

0 comments on commit 5f78b0a

Please sign in to comment.