diff --git a/.github/workflows/release-stable.yml b/.github/workflows/release-stable.yml index 6cb9d00..0fa77f1 100644 --- a/.github/workflows/release-stable.yml +++ b/.github/workflows/release-stable.yml @@ -45,10 +45,14 @@ jobs: - name: Install dependencies run: | pnpm install - pnpm run release ${{ github.event.inputs.release_type }} + pnpm install -g chrome-webstore-upload-cli + - name: Build and package + id: build_and_package + run: pnpm run release ${{ github.event.inputs.release_type }} - name: Upload to Chrome Web Store + if: ${{ steps.build_and_package.outcome == 'success' }} run: | - pnpm run chrome-webstore-upload upload \ + chrome-webstore-upload upload \ --source chrome-extension.zip \ --extension-id ${{ env.EXTENSION_ID }} \ --client-id ${{ secrets.GOOGLE_CLIENT_ID }} \