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
14 changes: 14 additions & 0 deletions .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build
description: Checkout, setup Node.js, install dependencies, and build
runs:
using: "composite"
steps:
- uses: actions/setup-node@v6
with:
registry-url: "https://registry.npmjs.org"
node-version: 22
cache: npm
- run: npm ci
shell: bash
- run: npm run build
shell: bash
146 changes: 110 additions & 36 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,127 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"

change-template: "- $TITLE (#$NUMBER) by @$AUTHOR"

template: |
# What's Changed

$CHANGES

---
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION

categories:
- title: '💣 Breaking'
label: 'breaking'
- title: '🚀 Features'
label: 'feature'
- title: '🐞 Bug Fixes'
label: 'bugfix'
- title: '👨‍💻 Maintenance'
label: 'maintenance'
- title: '📖 Documentation'
label: 'documentation'
- title: '🆙 Dependency Updates'
label: 'dependencies'
- title: '🚨 Security'
label: 'security'
- title: "💣 Breaking Changes"
labels: ["breaking"]

- title: "✨ Features"
labels: ["feature"]

- title: "🔧 Fixes"
labels: ["fix"]

- title: "🧹 Refactoring"
labels: ["refactor"]

- title: "📚 Documentation"
labels: ["docs"]

- title: "🧪 Tests"
labels: ["test"]

- title: "⚙️ Maintenance"
labels: ["chore"]

- title: "⬆️ Dependency Updates"
labels: ["dependencies"]
collapse-after: 10

- title: "🚨 Security"
labels: ["security"]
collapse-after: 5

- title: "Other"
labels: ["*"]

exclude-labels:
- "skip-changelog"

version-resolver:
major:
labels: ["breaking"]
minor:
labels: ["feature"]
patch:
labels:
- "fix"
- "refactor"
- "docs"
- "test"
- "chore"
- "dependencies"
- "security"
default: patch

autolabeler:
- label: 'bugfix'
- label: "breaking"
title:
- "/\\bbreak(ing)?\\b/i"
- "/\\bmajor\\b/i"
- "/!:/"
branch:
- '/fix\/.+/'
- "/(break|breaking|major)\\/.+/i"

- label: "feature"
title:
- '/fix/i'
- label: 'feature'
- "/\\b(feat|feature)\\b/i"
- "/\\b(add|introduce|support|enable)\\b/i"
branch:
- '/feature\/.+/'
- "/(feat|feature)\\/.+/i"

- label: "fix"
title:
- '/add/i'
- "/\\b(fix|bug|hotfix|patch)\\b/i"
branch:
- "/(fix|bugfix|hotfix)\\/.+/i"

version-resolver:
minor:
labels:
- 'breaking'
- 'feature'
patch:
labels:
- 'bugfix'
- 'maintenance'
- 'documentation'
- 'dependencies'
- 'security'
- label: "refactor"
title:
- "/\\brefactor\\b/i"
branch:
- "/refactor\\/.+/i"

exclude-labels:
- 'skip-changelog'
- label: "docs"
title:
- "/\\bdocs?\\b/i"
- "/readme/i"
branch:
- "/docs\\/.+/i"

- label: "test"
title:
- "/\\btests?\\b/i"
branch:
- "/tests?\\/.+/i"

- label: "chore"
title:
- "/\\bchore\\b/i"
- "/\\b(ci|build|tooling)\\b/i"
branch:
- "/(chore|ci|build)\\/.+/i"

- label: "dependencies"
title:
- "/\\bdeps\\b/i"
- "/dependenc(y|ies)/i"
- "/\\bbump\\b/i"
- "/\\bupgrade\\b/i"
branch:
- "/deps\\/.+/i"

- label: "security"
title:
- "/\\bsecurity\\b/i"
- "/\\bcve-\\d{4}-\\d+\\b/i"
- "/\\bvulnerability\\b/i"
11 changes: 3 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@ on:
pull_request:

jobs:
lint:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 18
cache: npm
- run: npm ci
- uses: actions/checkout@v6
- uses: ./.github/actions/build
- run: npm test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Draft
name: Release Drafter

on:
push:
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,14 @@ name: Release

on:
release:
types: [ published ]
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 18
cache: npm
- run: npm ci
- run: npm run build
- uses: actions/checkout@v6
- uses: ./.github/actions/build
- run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version
- run: npm publish --access=public
env:
Expand Down
7 changes: 0 additions & 7 deletions .mocharc.json

This file was deleted.

Loading
Loading