We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cff4062 commit c364174Copy full SHA for c364174
1 file changed
.github/scripts/publish-packages.sh
@@ -10,6 +10,15 @@ PACKAGES="$@"
10
11
for pkg in $PACKAGES; do
12
echo "::group::Publishing $pkg"
13
+
14
+ # Check if version already exists on pub.dev
15
+ HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" "https://pub.dev/api/packages/$pkg/versions/$VERSION")
16
+ if [ "$HTTP_CODE" = "200" ]; then
17
+ echo "⏭ $pkg $VERSION already published, skipping"
18
+ echo "::endgroup::"
19
+ continue
20
+ fi
21
22
cd packages/$pkg
23
dart pub get
24
dart pub publish --force
0 commit comments