Skip to content

chore(release): pre-release lint, meta, and automation fixes for v0.3.0 #215

chore(release): pre-release lint, meta, and automation fixes for v0.3.0

chore(release): pre-release lint, meta, and automation fixes for v0.3.0 #215

Workflow file for this run

name: release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 12, Col: 5): Unexpected value 'runs-on', (Line: 13, Col: 5): Unexpected value 'steps'
on:
workflow_dispatch:
inputs:
scope:
description: "Comma-separated package scope (optional)"
required: false
default: ""
jobs:
lint:
uses: ./.github/workflows/linting.yml # reuse if using reusable workflows; else inline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install
run: npm ci
- name: Lint
run: npm run lint
release:
needs: [lint] # hard gate
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: develop
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install
run: npm ci
- name: Configure git user
run: |
git config user.name "lightspeed-bot"
git config user.email "[email protected]"
- name: Validate changelog (schema + unreleased content)
run: |
node scripts/validation/validate-changelog.cjs CHANGELOG.md
node scripts/agents/includes/changelogUtils.cjs --unreleased CHANGELOG.md
- name: Run Release Agent
run: |
SCOPE_INPUT="${{ github.event.inputs.scope }}"
if [ -z "$SCOPE_INPUT" ]; then
SCOPE_INPUT="patch"
fi
node scripts/agents/release.agent.js --scope="$SCOPE_INPUT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Post metrics
if: always()
run: echo "metric=release_cycle conclusion=${{ job.status }}"