Skip to content

Commit

Permalink
fix: bump script
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed May 22, 2023
1 parent 5273559 commit 0fe1ee4
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit 0fe1ee4

Please sign in to comment.