@dpesch/mantisbt-mcp-server 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitea/workflows/ci.yml +53 -1
- package/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/.gitea/workflows/publish.yml +0 -57
package/.gitea/workflows/ci.yml
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
name: CI
|
|
1
|
+
name: CI / Publish
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches: [main]
|
|
6
|
+
tags:
|
|
7
|
+
- 'v*'
|
|
6
8
|
pull_request:
|
|
7
9
|
branches: [main]
|
|
8
10
|
|
|
9
11
|
jobs:
|
|
10
12
|
ci:
|
|
11
13
|
runs-on: codeberg-small
|
|
14
|
+
if: |
|
|
15
|
+
github.event_name == 'pull_request' ||
|
|
16
|
+
startsWith(github.ref, 'refs/tags/') ||
|
|
17
|
+
!startsWith(github.event.head_commit.message, 'chore: release')
|
|
12
18
|
|
|
13
19
|
steps:
|
|
14
20
|
- uses: actions/checkout@v4
|
|
@@ -30,3 +36,49 @@ jobs:
|
|
|
30
36
|
|
|
31
37
|
- name: Build
|
|
32
38
|
run: npm run build
|
|
39
|
+
|
|
40
|
+
publish:
|
|
41
|
+
runs-on: codeberg-small
|
|
42
|
+
needs: ci
|
|
43
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
44
|
+
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@v4
|
|
47
|
+
|
|
48
|
+
- name: Set up Node.js
|
|
49
|
+
uses: actions/setup-node@v4
|
|
50
|
+
with:
|
|
51
|
+
node-version: '20'
|
|
52
|
+
cache: 'npm'
|
|
53
|
+
registry-url: 'https://registry.npmjs.org'
|
|
54
|
+
|
|
55
|
+
- name: Install dependencies
|
|
56
|
+
run: npm ci
|
|
57
|
+
|
|
58
|
+
- name: Build
|
|
59
|
+
run: npm run build
|
|
60
|
+
|
|
61
|
+
- name: Publish to npm
|
|
62
|
+
run: npm publish --access public
|
|
63
|
+
env:
|
|
64
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
65
|
+
|
|
66
|
+
- name: Extract release notes from CHANGELOG
|
|
67
|
+
run: |
|
|
68
|
+
VERSION="${{ github.ref_name }}"
|
|
69
|
+
VERSION_NUM="${VERSION#v}"
|
|
70
|
+
awk "/^## \[${VERSION_NUM}\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md \
|
|
71
|
+
| sed '/^[[:space:]]*$/d' > /tmp/release_notes.md
|
|
72
|
+
echo "Release notes:"
|
|
73
|
+
cat /tmp/release_notes.md
|
|
74
|
+
|
|
75
|
+
- name: Create Codeberg release
|
|
76
|
+
run: |
|
|
77
|
+
curl -s -X POST "https://codeberg.org/api/v1/repos/dpesch/mantisbt-mcp-server/releases" \
|
|
78
|
+
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
|
79
|
+
-H "Content-Type: application/json" \
|
|
80
|
+
-d "$(jq -n \
|
|
81
|
+
--arg tag "${{ github.ref_name }}" \
|
|
82
|
+
--arg name "${{ github.ref_name }}" \
|
|
83
|
+
--rawfile body /tmp/release_notes.md \
|
|
84
|
+
'{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}')"
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [1.0.3] – 2026-03-15
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- CI badge reverted to Codeberg native URL (shields.io Gitea endpoint returned 404)
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- CI workflow skips duplicate run on branch push for release commits
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## [1.0.2] – 2026-03-15
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- CI badge switched to shields.io for correct rendering on npmjs.com
|
|
24
|
+
- Publish workflow now depends on CI passing (`needs: ci`) before releasing
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
10
28
|
## [1.0.1] – 2026-03-15
|
|
11
29
|
|
|
12
30
|
### Added
|
package/package.json
CHANGED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
name: Publish to npm
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- 'v*'
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
publish:
|
|
10
|
-
runs-on: codeberg-small
|
|
11
|
-
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v4
|
|
14
|
-
|
|
15
|
-
- name: Set up Node.js
|
|
16
|
-
uses: actions/setup-node@v4
|
|
17
|
-
with:
|
|
18
|
-
node-version: '20'
|
|
19
|
-
cache: 'npm'
|
|
20
|
-
registry-url: 'https://registry.npmjs.org'
|
|
21
|
-
|
|
22
|
-
- name: Install dependencies
|
|
23
|
-
run: npm ci
|
|
24
|
-
|
|
25
|
-
- name: Typecheck
|
|
26
|
-
run: npm run typecheck
|
|
27
|
-
|
|
28
|
-
- name: Test
|
|
29
|
-
run: npm test
|
|
30
|
-
|
|
31
|
-
- name: Build
|
|
32
|
-
run: npm run build
|
|
33
|
-
|
|
34
|
-
- name: Publish to npm
|
|
35
|
-
run: npm publish --access public
|
|
36
|
-
env:
|
|
37
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
38
|
-
|
|
39
|
-
- name: Extract release notes from CHANGELOG
|
|
40
|
-
run: |
|
|
41
|
-
VERSION="${{ github.ref_name }}"
|
|
42
|
-
VERSION_NUM="${VERSION#v}"
|
|
43
|
-
awk "/^## \[${VERSION_NUM}\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md \
|
|
44
|
-
| sed '/^[[:space:]]*$/d' > /tmp/release_notes.md
|
|
45
|
-
echo "Release notes:"
|
|
46
|
-
cat /tmp/release_notes.md
|
|
47
|
-
|
|
48
|
-
- name: Create Codeberg release
|
|
49
|
-
run: |
|
|
50
|
-
curl -s -X POST "https://codeberg.org/api/v1/repos/dpesch/mantisbt-mcp-server/releases" \
|
|
51
|
-
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
|
52
|
-
-H "Content-Type: application/json" \
|
|
53
|
-
-d "$(jq -n \
|
|
54
|
-
--arg tag "${{ github.ref_name }}" \
|
|
55
|
-
--arg name "${{ github.ref_name }}" \
|
|
56
|
-
--rawfile body /tmp/release_notes.md \
|
|
57
|
-
'{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}')"
|