Skip to content

Commit d12fddb

Browse files
committed
ci: added automatic release flow
1 parent 9e469b7 commit d12fddb

File tree

6 files changed

+65
-1
lines changed

6 files changed

+65
-1
lines changed

.github/release-please/config.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/v16.12.0/schemas/config.json",
3+
"release-type": "node",
4+
"include-component-in-tag": false,
5+
"changelog-sections": [
6+
{ "type": "feat", "section": "🌟 Features", "hidden": false },
7+
{ "type": "fix", "section": "🩹 Fixes", "hidden": false },
8+
{ "type": "docs", "section": "📚 Documentation", "hidden": false },
9+
10+
{ "type": "chore", "section": "🧹 Chores", "hidden": false },
11+
{ "type": "perf", "section": "🧹 Chores", "hidden": false },
12+
{ "type": "refactor", "section": "🧹 Chores", "hidden": false },
13+
{ "type": "test", "section": "🧹 Chores", "hidden": false },
14+
15+
{ "type": "build", "section": "🤖 Automation", "hidden": false },
16+
{ "type": "ci", "section": "🤖 Automation", "hidden": true }
17+
],
18+
"packages": {
19+
".": {}
20+
}
21+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{".":"1.0.0"}

.github/workflows/compliance.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Compliance
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited, reopened]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
compliance:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: mtfoley/pr-compliance-action@11b664f0fcf2c4ce954f05ccfcaab6e52b529f86
15+
with:
16+
body-auto-close: false
17+
body-regex: '.*'
18+
ignore-authors: |
19+
renovate
20+
renovate[bot]
21+
ignore-team-members: false
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
packages: write
12+
pull-requests: write
13+
14+
jobs:
15+
release-please:
16+
uses: voxpelli/ghatemplates/.github/workflows/release-please-4.yml@main
17+
secrets: inherit

.husky/commit-msg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
3+
npx --no validate-conventional-commit < .git/COMMIT_EDITMSG

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"sinon": "^17.0.1",
7979
"sinon-chai": "^3.7.0",
8080
"type-coverage": "^2.28.2",
81-
"typescript": "~5.4.5"
81+
"typescript": "~5.4.5",
82+
"validate-conventional-commit": "^1.0.3"
8283
}
8384
}

0 commit comments

Comments
 (0)