Skip to content

Commit

Permalink
ci: use bot to do releases
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Nov 29, 2023
1 parent 9957e94 commit 7d52737
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_PRIVATE_KEY }}

- name: Create Release Pull Request or Create a GitHub Release + tag
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7d52737

Please sign in to comment.