Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed Aug 20, 2024
1 parent d74e5b5 commit db42464
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ jobs:
runs-on: ubuntu-latest
name: Release
steps:
- name: Generate Github App Token
id: github_app_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
token: ${{ steps.github_app_token.outputs.token }}

- uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v3
with:
run_install: true
- run: |
cd packages/bento-design-system
pnpm version --no-git-tag-version --new-version ${{ github.ref_name }}
- name: Generate Github App Token
id: github_app_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}

- name: Commit & Push changes
uses: actions-js/push@master
Expand All @@ -40,6 +40,10 @@ jobs:
author_email: 168835274+buildo-release-bot[bot]@users.noreply.github.com
github_token: ${{ steps.github_app_token.outputs.token }}

- run: |
git config --global user.name "buildo-release-bot[bot]"
git config --global user.email "168835274+your-app[bot]@users.noreply.github.com"
- name: Publish to npm
uses: JS-DevTools/npm-publish@v3
with:
Expand Down

0 comments on commit db42464

Please sign in to comment.