Skip to content

Commit 903543c

Browse files
committed
feat: Add release workflow and configuration
1 parent 88a5b07 commit 903543c

File tree

3 files changed

+55
-3
lines changed

3 files changed

+55
-3
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 'lts/*'
21+
- name: Install dependencies
22+
run: npm ci
23+
- name: Run tests
24+
run: npm test
25+
- name: Build
26+
run: npm run build
27+
- name: Release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: npx semantic-release

linters/typescript/.releaserc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/changelog",
7+
"@semantic-release/npm",
8+
"@semantic-release/github",
9+
[
10+
"@semantic-release/git",
11+
{
12+
"assets": ["package.json", "CHANGELOG.md"],
13+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
14+
}
15+
]
16+
]
17+
}

linters/typescript/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codebase-context-lint",
3-
"version": "0.0.7",
3+
"version": "0.0.0-development",
44
"description": "CLI linter for AI Context Convention files",
55
"main": "dist/context_linter.js",
66
"bin": {
@@ -11,7 +11,8 @@
1111
"start": "node dist/cli.js",
1212
"lint": "node dist/cli.js",
1313
"test": "jest",
14-
"prepublishOnly": "npm run build"
14+
"prepublishOnly": "npm run build",
15+
"semantic-release": "semantic-release"
1516
},
1617
"keywords": [
1718
"linter",
@@ -37,7 +38,10 @@
3738
"@types/node": "^22.5.1",
3839
"jest": "^29.7.0",
3940
"ts-jest": "^29.1.2",
40-
"typescript": "^5.5.4"
41+
"typescript": "^5.5.4",
42+
"semantic-release": "^21.0.1",
43+
"@semantic-release/changelog": "^6.0.3",
44+
"@semantic-release/git": "^10.0.1"
4145
},
4246
"dependencies": {
4347
"js-yaml": "^4.1.0",

0 commit comments

Comments
 (0)