Skip to content

Commit

Permalink
Add dist files to gitignore and forcibly commit them instead
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed Apr 7, 2023
1 parent 14312b1 commit a0373e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v4.11.0
with:
file_pattern: dist/**
add_options: -u --force
commit_message: 'chore(dist): Update dist [automated commit]'
commit_user_name: cobraz
commit_user_email: cobraz@users.noreply.github.com
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,6 @@ Thumbs.db

# Ignore built ts files
__tests__/runner/*
lib/**/*
lib/**/*

dist
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"husky": {
"hooks": {
"pre-commit": "yarn build && git add dist/* && lint-staged"
"pre-commit": "lint-staged"
}
},
"lint-staged": {
Expand Down

0 comments on commit a0373e4

Please sign in to comment.