Skip to content
Merged
Show file tree
Hide file tree
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
50 changes: 25 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: CI

on:
pull_request:
branches: [main, develop]
push:
branches: [main, develop]
workflow_dispatch: # Allow manual triggers
branches: [main, 'release/**']
pull_request:
branches: [main, 'release/**']
workflow_dispatch:

jobs:
lint-and-format:
name: Lint & Format Check
validate:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history for commitlint

- name: Setup Node.js
uses: actions/setup-node@v4
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Check formatting
run: npm run format:check

- name: Run ESLint
run: npm run lint

- name: Check commit messages

- name: Run checks in parallel
run: |
npm run format:check &
npm run lint &
wait

- name: Build
run: npm run build

- name: Test
run: npm test

- name: Check commits (PR only)
if: github.event_name == 'pull_request'
run: |
npx commitlint \
--from ${{ github.event.pull_request.base.sha }} \
--to ${{ github.event.pull_request.head.sha }} \
--verbose

unit-tests:
name: Unit Tests
uses: ./.github/workflows/run-unit-tests.yml
--to ${{ github.event.pull_request.head.sha }}
47 changes: 47 additions & 0 deletions .github/workflows/create-release-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Create Release Branch

on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., 1.0, 2.1)'
required: true
type: string
from:
description: 'Create from branch/tag (default: main)'
required: false
default: 'main'
type: string

permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.from }}
token: ${{ secrets.SUPERDOC_PAT }}

- name: Create and push release branch
run: |
BRANCH="release/${{ inputs.version }}"

# Create the branch
git checkout -b "$BRANCH"

# Push to origin
git push origin "$BRANCH"

echo "✅ Created $BRANCH from ${{ inputs.from }}"
echo ""
echo "What happens next:"
echo "1. Semantic release will detect the new branch"
echo "2. It will automatically publish the current version as stable"
echo "3. Main branch will continue with next minor version"
echo ""
echo "NPM tags:"
echo "- @latest: ${{ inputs.version }}.0"
echo "- @next: next minor version previews"
43 changes: 0 additions & 43 deletions .github/workflows/docs.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/issue-to-linear.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/npm-publish-next.yml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/npm-publish.yml

This file was deleted.

Loading
Loading