-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f9539d
commit 7f9bcc2
Showing
3 changed files
with
51 additions
and
15 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
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 |
---|---|---|
@@ -1,23 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Checkout main branch | ||
git checkout main | ||
|
||
# Pull latest changes from origin main | ||
git pull origin main | ||
|
||
# Copy README.md to libs/xng-breadcrumb/README.md | ||
cp README.md libs/xng-breadcrumb/README.md | ||
cp README.md xng-breadcrumb/README.md | ||
|
||
# Get npm package version | ||
VERSION=$(npm -s run env | grep npm_package_version | sed 's/npm_package_version=//') | ||
# Update npm version in libs/xng-breadcrumb directory | ||
( | ||
cd libs/xng-breadcrumb | ||
npm version "$VERSION" | ||
) | ||
|
||
# Change directory to libs/xng-breadcrumb and update npm version | ||
cd libs/xng-breadcrumb | ||
npm version "$VERSION" | ||
cd .. | ||
|
||
# Add changes, commit, and push to origin main | ||
git add . | ||
git commit -m "$VERSION" | ||
git push origin main |
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