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
25 changes: 19 additions & 6 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
name: Semantic Release
run-name: ${{ github.actor }} is automatically releasing

on:
push:
branches:
- main
- dev

permissions:
contents: write
issues: write
pull-requests: write
id-token: write

jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -52,6 +47,24 @@ jobs:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}

- name: Debug token & actor
env:
APP_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
echo "--- git remote ---"
git remote -v || true
echo
echo "--- git config user ---"
git config user.name || true
git config user.email || true
echo
echo "--- GraphQL viewer (login / type) ---"
curl -s -H "Authorization: Bearer $APP_TOKEN" -H "Accept: application/vnd.github+json" \
-d '{"query":"{ viewer { login __typename } }"}' https://api.github.com/graphql || true
echo
echo "--- REST /repos response (first 200 lines) ---"
curl -s -H "Authorization: Bearer $APP_TOKEN" -H "Accept: application/vnd.github+json" https://api.github.com/repos/${{ github.repository }} | sed -n '1,200p' || true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down