Skip to content

Commit

Permalink
feat: use fundabot to bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
giriparus committed Jul 16, 2024
1 parent 30835f9 commit c2b84b7
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,21 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Generate token
if: ${{ github.ref_name == 'main' }}
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ vars.FUNDABOT_APP_ID }}
private_key: ${{ secrets.FUNDABOT_PRIVATE_KEY }}

- uses: actions/checkout@v3
if: ${{ github.ref_name == 'main' }}
with:
token: ${{ steps.generate_token.outputs.token }}

- uses: actions/checkout@v3
if: ${{ github.ref_name != 'main' }}

- name: Version bump
id: version
Expand Down Expand Up @@ -55,15 +69,14 @@ jobs:
env:
VERSION: ${{ steps.version.outputs.newTag }}
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git commit -a -m "CI: bumps fundwave/oidc-client to $VERSION"
git config user.email "fundabot@fundwave.com"
git config user.name "fundabot"
git add package.json package-lock.json
git commit -m "CI: bumps ui-utils version to $VERSION" -m "[skip ci]"
git tag "v$VERSION" HEAD -m "CI: bumps version to $VERSION"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ env.GITHUB_TOKEN }}
branch: ${{ github.ref }}
run: git push --follow-tags --atomic --no-verify

publish-npmjs:
needs: release
Expand Down

0 comments on commit c2b84b7

Please sign in to comment.