Skip to content

Commit

Permalink
Use the Primer GitHub App for auth instead of the GPR_AUTH_TOKEN_SHAR…
Browse files Browse the repository at this point in the history
…ED (#720)
  • Loading branch information
camertron authored Aug 23, 2023
1 parent a082224 commit d3d9c88
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ jobs:
- name: Build experimental tokens
run: npm run build:tokens

- id: get-access-token
uses: camertron/github-app-installation-auth-action@v1
with:
app-id: ${{ vars.PRIMER_ISSUE_TRIAGE_APP_ID }}
private-key: ${{ secrets.PRIMER_ISSUE_TRIAGE_APP_PRIVATE_KEY }}
client-id: ${{ vars.PRIMER_ISSUE_TRIAGE_APP_CLIENT_ID }}
client-secret: ${{ secrets.PRIMER_ISSUE_TRIAGE_APP_CLIENT_SECRET }}
installation-id: ${{ vars.PRIMER_ISSUE_TRIAGE_APP_INSTALLATION_ID }}

- name: Create release pull request or publish to npm
id: changesets
uses: changesets/action@v1.4.1
Expand All @@ -41,5 +50,5 @@ jobs:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GPR_AUTH_TOKEN_SHARED }}
GITHUB_TOKEN: ${{ steps.get-access-token.outputs.access-token }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}

0 comments on commit d3d9c88

Please sign in to comment.