Skip to content

docs: update AGENTS.md and README.md with semantic release information #2

docs: update AGENTS.md and README.md with semantic release information

docs: update AGENTS.md and README.md with semantic release information #2

name: Automated Release Workflow
on:
push:
branches: [main]
workflow_dispatch:
jobs:
# Job: Create automated release using semantic-release
create-release:
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
ref: main
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
run: npx semantic-release