Files
yellowjacket/.github/workflows/release.yml
T
logan 68d41c0ff2 fix(ci): use PAT for semantic-release to trigger build workflow
GITHUB_TOKEN events cannot trigger other workflows by design.
Use a fine-grained PAT (RELEASE_TOKEN secret) so the tag push
from semantic-release triggers the build.yml workflow.
2026-02-13 21:38:59 -06:00

49 lines
1.2 KiB
YAML

name: Release
run-name: Release — determine version
on:
push:
branches: [main]
# Only one release at a time.
concurrency:
group: release
cancel-in-progress: false
permissions:
contents: write
issues: write
pull-requests: write
jobs:
semantic-release:
name: Semantic Release
runs-on: ubuntu-latest
steps:
# Use a PAT so that the tag push triggers the build workflow.
# GITHUB_TOKEN events don't trigger other workflows (by design).
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install semantic-release and plugins
run: >
npm install --no-save
semantic-release@24
@semantic-release/changelog@6
@semantic-release/git@10
@semantic-release/github@11
@semantic-release/commit-analyzer@13
@semantic-release/release-notes-generator@14
conventional-changelog-conventionalcommits@8
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: npx semantic-release