Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with: { cache: yarn, node-version-file: .node-version }

- name: Mint release token

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably kill the name here? I think "create-github-app-token" is descriptive enough.

id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}

- name: Ensure release runs from main
run: |
if [ "${{ github.ref }}" != "refs/heads/main" ]; then
Expand Down Expand Up @@ -63,6 +70,7 @@ jobs:
VERSION: ${{ steps.bump.outputs.version }}
VERSION_FILES: ${{ steps.bump.outputs.files }}
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const fs = require('fs')

Expand Down Expand Up @@ -146,6 +154,7 @@ jobs:
COMMIT_SHA: ${{ steps.commit.outputs.sha }}
VERSION_TAG: ${{ steps.bump.outputs.tag }}
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const { owner, repo } = context.repo
const tag = process.env.VERSION_TAG
Expand Down
Loading