Skip to content

Commit

Permalink
CI/CD: Potentially fixed forcing dist into release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
temporary-simon committed Jul 25, 2023
1 parent 83b0233 commit 98ad7a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:

- name: Commit changes
run: |
git config --local user.email "simonwa01@github.com"
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add dist node_modules
git add -f dist
if git diff --quiet && git diff --staged --quiet; then
echo "No changes to commit"
else
Expand Down
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
node_modules/

# Ignore dist directory everywhere
/dist/

# But not in release branches
!/release/dist/
/node_modules
/dist

0 comments on commit 98ad7a2

Please sign in to comment.