Skip to content

Commit bd5b656

Browse files
committed
chore: fix release configurations
1 parent 529763c commit bd5b656

File tree

5 files changed

+113
-211
lines changed

5 files changed

+113
-211
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,18 @@ jobs:
5959
GIT_COMMITTER_NAME: "@kdnjbot"
6060
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
6161
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
62-
run: pnpm run release
62+
run: |
63+
# PATCH: replace workspace:* to *
64+
# multi-semantic-release (especially @semrel-extra/npm not supported version `workspace:*`.
65+
# So, need to replace it before release
66+
homebin=$HOME/kdnj/bin
67+
mkdir -p $homebin
68+
echo -e '#!/bin/bash\npnpm "$@"' > $homebin/npm && chmod +x $homebin/npm
69+
70+
rc=/tmp/rcfile
71+
echo 'shopt -s expand_aliases' > $rc
72+
echo 'alias npm="$homebin/npm"' >> $rc
73+
source $rc
74+
find . -type f -name "package.json" -not -path './node_modules*' -not -path './.git*' -exec sed -i 's/workspace:\*/\*/g' {} \;
75+
npm --help
76+
pnpm run release

0 commit comments

Comments
 (0)