Skip to content

Commit bdc3499

Browse files
authored
Merge pull request #2250 from hirosystems/develop
push semantic release ci changes to master
2 parents 5f90d00 + d982c79 commit bdc3499

27 files changed

+21
-2817
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,19 +277,37 @@ jobs:
277277
if: always()
278278

279279
build-publish:
280+
permissions:
281+
contents: write
282+
issues: write
283+
pull-requests: write
280284
runs-on: ubuntu-latest
281285
needs:
282286
- lint
283287
- test
284288
- test-2_5
285289
- test-rosetta
286290
steps:
291+
- name: Generate release bot app token
292+
id: generate_token
293+
uses: actions/create-github-app-token@v1
294+
with:
295+
app-id: ${{ secrets.HIROSYSTEMS_RELEASE_BOT_ID }}
296+
private-key: ${{ secrets.HIROSYSTEMS_RELEASE_BOT_PEM }}
297+
287298
- uses: actions/checkout@v4
288299
with:
289300
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
290301
fetch-depth: 0
291302
persist-credentials: false
292303

304+
- name: Get bot user ID
305+
id: bot-user-id
306+
run: |
307+
echo "user-id=$(gh api "/users/${{ steps.generate_token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
308+
env:
309+
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
310+
293311
- uses: actions/setup-node@v4
294312
with:
295313
node-version-file: ".nvmrc"
@@ -300,9 +318,11 @@ jobs:
300318
# Only run on non-PR events or only PRs that aren't from forks
301319
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
302320
env:
303-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
321+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
304322
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
305323
SEMANTIC_RELEASE_PACKAGE: ${{ github.event.repository.name }}
324+
GIT_AUTHOR_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
325+
GIT_COMMITTER_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
306326
with:
307327
semantic_version: 19
308328
extra_plugins: |

content/faqs.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

content/feature-guides/gaia-storage.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

content/feature-guides/microblocks.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

content/feature-guides/nonce-handling.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

content/feature-guides/openapi-spec.md

Lines changed: 0 additions & 89 deletions
This file was deleted.

content/feature-guides/pagination.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

content/feature-guides/rate-limiting.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

content/feature-guides/requesting-proofs.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)