Skip to content

Commit d472ad6

Browse files
Run publish check on stable (#1351)
1 parent 921aad0 commit d472ad6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.cirrus.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ task:
1313
activate_script: pub global activate flutter_plugin_tools
1414
matrix:
1515
- name: publishable
16-
script: ./script/check_publish.sh
16+
script:
17+
- flutter channel stable
18+
- ./script/check_publish.sh
1719
- name: format
1820
install_script:
1921
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -

script/check_publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function check_publish() {
1717
echo "Checking that $package_name can be published."
1818
if [[ $(cd "$dir" && cat pubspec.yaml | grep -E "^publish_to: none") ]]; then
1919
echo "Package $package_name is marked as unpublishable. Skipping."
20-
elif (cd "$dir" && pub publish --dry-run > /dev/null); then
20+
elif (cd "$dir" && flutter pub publish -- --dry-run > /dev/null); then
2121
echo "Package $package_name is able to be published."
2222
else
2323
error "Unable to publish $package_name"
@@ -38,4 +38,4 @@ check_changed_packages
3838

3939
if [[ "${#CHANGED_PACKAGE_LIST[@]}" != 0 ]]; then
4040
check_publish "${CHANGED_PACKAGE_LIST[@]}"
41-
fi
41+
fi

0 commit comments

Comments
 (0)