Skip to content

Commit 92561e3

Browse files
committed
fix(sdk): use recursive pnpm publish instead of npm publish
1 parent f5cdb8a commit 92561e3

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

.github/workflows/publish-sdk.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,7 @@ jobs:
136136
if [[ $(echo "$COMMIT_MESSAGE" | grep 'chore(sdk): version v') ]]; then
137137
npm config set provenance true
138138
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
139-
for p in $(pwd)/packages/*
140-
do
141-
cd $p
142-
# Check if package is private
143-
if grep -q '"private":\s*true' package.json; then
144-
echo "Skipping private package: $(basename $p)"
145-
else
146-
echo "Publishing package: $(basename $p)"
147-
npm publish --access public
148-
fi
149-
done
139+
pnpm publish -r --access public
150140
else
151141
echo 'Not an sdk release commit, skipping...'
152142
fi

0 commit comments

Comments
 (0)