From 0fe1ee451296a77286bd1b0dc67cff29bbafb3b6 Mon Sep 17 00:00:00 2001 From: Martin Donadieu Date: Mon, 22 May 2023 13:22:09 +0100 Subject: [PATCH] fix: bump script --- .github/workflows/bump_version.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index dcaae64..de1db04 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -32,16 +32,21 @@ jobs: run: | git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" - - name: Update Readme - run: pnpm docgen - - name: Add readme - run: git add README.md - name: Create bump and changelog main if: github.ref == 'refs/heads/main' - run: npx standard-version + run: pnpm dlx capacitor-plugin-standard-version@latest - name: Create bump and changelog development if: github.ref != 'refs/heads/main' - run: npx standard-version --prerelease alpha + run: pnpm dlx capacitor-plugin-standard-version@latest --prerelease alpha + - name: Update Doc + run: pnpm docgen + - name: Update Doc + run: pnpm docgen:api + - name: Add doc to github + run: | + git add README.md + git add api.md + git commit --amend --no-edit - name: Push to origin run: | CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) @@ -65,3 +70,5 @@ jobs: - name: Install dependencies id: install_code run: pnpm install --frozen-lockfile + - name: CLI capacitor-standard-version install + run: pnpm dlx capacitor-standard-version@latest --version \ No newline at end of file