Skip to content

Commit 4f81595

Browse files
authored
chore: update release configuration and dependencies, add release branch workflow (#832)
* chore: update release configuration and dependencies, add release branch workflow * chore: update release naming convention in configuration
1 parent 1b2868d commit 4f81595

19 files changed

Lines changed: 10954 additions & 6352 deletions

.github/workflows/ci.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
name: CI
22

33
on:
4-
pull_request:
5-
branches: [main, develop]
64
push:
7-
branches: [main, develop]
8-
workflow_dispatch: # Allow manual triggers
5+
branches: [main, 'release/**']
6+
pull_request:
7+
branches: [main, 'release/**']
8+
workflow_dispatch:
99

1010
jobs:
11-
lint-and-format:
12-
name: Lint & Format Check
11+
validate:
1312
runs-on: ubuntu-latest
13+
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
17-
fetch-depth: 0 # Full history for commitlint
18-
19-
- name: Setup Node.js
20-
uses: actions/setup-node@v4
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v4
2120
with:
2221
node-version: 22
2322
cache: npm
24-
23+
2524
- name: Install dependencies
2625
run: npm ci
27-
28-
- name: Check formatting
29-
run: npm run format:check
30-
31-
- name: Run ESLint
32-
run: npm run lint
33-
34-
- name: Check commit messages
26+
27+
- name: Run checks in parallel
28+
run: |
29+
npm run format:check &
30+
npm run lint &
31+
wait
32+
33+
- name: Build
34+
run: npm run build
35+
36+
- name: Test
37+
run: npm test
38+
39+
- name: Check commits (PR only)
3540
if: github.event_name == 'pull_request'
3641
run: |
3742
npx commitlint \
3843
--from ${{ github.event.pull_request.base.sha }} \
39-
--to ${{ github.event.pull_request.head.sha }} \
40-
--verbose
41-
42-
unit-tests:
43-
name: Unit Tests
44-
uses: ./.github/workflows/run-unit-tests.yml
44+
--to ${{ github.event.pull_request.head.sha }}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create Release Branch
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Release version (e.g., 1.0, 2.1)'
8+
required: true
9+
type: string
10+
from:
11+
description: 'Create from branch/tag (default: main)'
12+
required: false
13+
default: 'main'
14+
type: string
15+
16+
permissions:
17+
contents: write
18+
19+
jobs:
20+
create-release:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
ref: ${{ inputs.from }}
26+
token: ${{ secrets.SUPERDOC_PAT }}
27+
28+
- name: Create and push release branch
29+
run: |
30+
BRANCH="release/${{ inputs.version }}"
31+
32+
# Create the branch
33+
git checkout -b "$BRANCH"
34+
35+
# Push to origin
36+
git push origin "$BRANCH"
37+
38+
echo "✅ Created $BRANCH from ${{ inputs.from }}"
39+
echo ""
40+
echo "What happens next:"
41+
echo "1. Semantic release will detect the new branch"
42+
echo "2. It will automatically publish the current version as stable"
43+
echo "3. Main branch will continue with next minor version"
44+
echo ""
45+
echo "NPM tags:"
46+
echo "- @latest: ${{ inputs.version }}.0"
47+
echo "- @next: next minor version previews"

.github/workflows/docs.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/issue-to-linear.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/npm-publish-next.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)