-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refact publish.yml - remove npm version patch
- Loading branch information
Showing
1 changed file
with
0 additions
and
18 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 |
---|---|---|
|
@@ -22,24 +22,6 @@ jobs: | |
- name: Install dependencies using Yarn | ||
run: yarn install | ||
|
||
- name: Commit changes to yarn.lock if any | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add yarn.lock | ||
git commit -m "Update yarn.lock" || echo "No changes to commit" | ||
- name: Check for uncommitted changes | ||
run: | | ||
git diff --exit-code || (echo "Uncommitted changes found. Please ensure the working directory is clean." && exit 1) | ||
- name: Update version | ||
run: npm version patch | ||
|
||
- name: Push updated version and yarn.lock | ||
run: | | ||
git push origin main | ||
- name: Build lib | ||
run: npm run build | ||
|
||
|