Skip to content

Commit

Permalink
Merge pull request #94 from PasteBar/kurdin-patch-2
Browse files Browse the repository at this point in the history
Update build-test.yml
  • Loading branch information
kurdin authored Jul 20, 2024
2 parents 0421765 + e3bc62a commit a21feef
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@ jobs:
node-version: lts/*

- name: Install dependencies
run: |
npm install
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
if [[ `git status --porcelain` ]]; then
git add package-lock.json
git commit -m "Update package-lock.json"
git push
fi
run: npm install

- name: Check for changesets
id: check_changes
Expand All @@ -36,10 +28,28 @@ jobs:
echo "changes_detected=false" >> $GITHUB_OUTPUT
fi
- name: Version bump and update changelog
- name: Create Pull Request
if: steps.check_changes.outputs.changes_detected == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions
git config user.email [email protected]
# Create a new branch
git checkout -b version-bump-${{ github.sha }}
# Run version bump
npm run version
git push --follow-tags
# Commit changes
git add .
git commit -m "Version bump and changelog update"
# Push the branch
git push origin version-bump-${{ github.sha }}
# Create Pull Request
gh pr create --title "Version Bump and Changelog Update" --body "Automated version bump and changelog update" --base main --head version-bump-${{ github.sha }}
# test-tauri job remains commented out as in the previous version

0 comments on commit a21feef

Please sign in to comment.