Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/publish.reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,12 @@ jobs:
if: inputs.is-prerelease != 'true'
run: |
for package in packages/@postgrestools/*; do
package_basename=$(basename "$package")
package_name="@postgrestools/$package_basename"
package_version="${{ inputs.release-tag }}"
version="${{ inputs.release-tag }}"

if npm view "$package_name@$package_version" version 2>/dev/null; then
echo "Package $package_name@$package_version already exists, skipping..."
if npm view "$package@$version" version 2>/dev/null; then
echo "Package $package@$version already exists, skipping..."
else
echo "Publishing $package_name@$package_version..."
echo "Publishing $package@$version..."
npm publish "$package" --tag latest --access public --provenance
fi
done
Expand Down