-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from PasteBar/kurdin-patch-2
Update build-test.yml
- Loading branch information
Showing
1 changed file
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |