Skip to content

Commit

Permalink
ci: update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Jul 10, 2024
1 parent 1b86fac commit bbf0303
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ clean() {
publish_forge_pkg() {
pkg="$1"
version=$(jq -r '.version' "packages/$pkg/package.json")
current_branch=$(git branch --show-current)

git checkout -b "$pkg"

git pull --rebase origin "$pkg"
clean "$pkg"
mv "packages/$pkg"/src .
mv "packages/$pkg"/README.md .
rm -fr "packages/$pkg"
rm -fr "packages"
git add src
git commit -am "$version"
git push origin "$pkg"

git checkout main

git checkout "$current_branch"
}

publish_forge_pkgs() {
Expand Down

0 comments on commit bbf0303

Please sign in to comment.