From 5a8b6c70ab797718579a8ada484712f1667ccd79 Mon Sep 17 00:00:00 2001 From: HUI Date: Fri, 2 Jun 2023 16:15:43 +0800 Subject: [PATCH] ci: fix dart not found --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2b9610e..a34a5d3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,7 +38,6 @@ jobs: if: ${{ inputs.dry-run }} run: | release-it ${{ inputs.increment }} -d --ci - dart pub publish --dry-run - name: Release if: ${{ !inputs.dry-run }} @@ -47,10 +46,10 @@ jobs: git config --global user.name "${{ secrets.GIT_USERNAME }}" release-it ${{ inputs.increment }} --ci --no.npm - - name: Publish Dart Package + - name: Publish if: ${{ !inputs.dry-run }} uses: k-paxian/dart-package-publisher@1.5 with: accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }} - skipTests: true + dryRunOnly: ${{ inputs.dry-run }}