Skip to content

Commit

Permalink
chore: fix release configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Sep 12, 2023
1 parent 529763c commit bd5b656
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 211 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,18 @@ jobs:
GIT_COMMITTER_NAME: "@kdnjbot"
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
run: pnpm run release
run: |
# PATCH: replace workspace:* to *
# multi-semantic-release (especially @semrel-extra/npm not supported version `workspace:*`.
# So, need to replace it before release
homebin=$HOME/kdnj/bin
mkdir -p $homebin
echo -e '#!/bin/bash\npnpm "$@"' > $homebin/npm && chmod +x $homebin/npm
rc=/tmp/rcfile
echo 'shopt -s expand_aliases' > $rc
echo 'alias npm="$homebin/npm"' >> $rc
source $rc
find . -type f -name "package.json" -not -path './node_modules*' -not -path './.git*' -exec sed -i 's/workspace:\*/\*/g' {} \;
npm --help
pnpm run release
Loading

0 comments on commit bd5b656

Please sign in to comment.