Skip to content

Commit

Permalink
chore: pass APP_ID and APP_PRIVATE_KEY to the github app
Browse files Browse the repository at this point in the history
  • Loading branch information
ilfa committed Mar 7, 2024
1 parent 39e612b commit 733d477
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,12 @@ on:
workflow_dispatch:

jobs:
collect-token:
environment: production
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
outputs:
gh_release_token: ${{ steps.app-token.outputs.token }}
build-and-release:
# Don't forget to configure production environment after repository is made public to require approval before triggering!
name: 'Build project, run CI checks and publish new release'
needs:
- collect-token
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@v1
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@6ca15a6232c8cd448affa8b61e110e5ef7528d1e
secrets:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
GH_RELEASE_TOKEN: ${{ needs.collect-token.outputs.gh_release_token }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 733d477

Please sign in to comment.