semantic-release-minecraft 2.3.1 → 2.3.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/.github/workflows/release.yml +8 -3
- package/.releaserc.json +6 -1
- package/CHANGELOG.md +21 -0
- package/README.md +17 -25
- package/dist/prepare.d.ts.map +1 -1
- package/dist/prepare.js +4 -6
- package/dist/prepare.js.map +1 -1
- package/package.json +10 -10
- package/src/prepare.ts +5 -8
|
@@ -22,19 +22,24 @@ jobs:
|
|
|
22
22
|
with:
|
|
23
23
|
fetch-depth: 0
|
|
24
24
|
|
|
25
|
+
- uses: pnpm/action-setup@v4
|
|
26
|
+
with:
|
|
27
|
+
version: 10
|
|
28
|
+
|
|
25
29
|
- name: Setup Node.js
|
|
26
|
-
uses: actions/setup-node@
|
|
30
|
+
uses: actions/setup-node@v6
|
|
27
31
|
with:
|
|
28
32
|
node-version: "lts/*"
|
|
33
|
+
cache: pnpm
|
|
29
34
|
|
|
30
35
|
- name: Install dependencies
|
|
31
|
-
run:
|
|
36
|
+
run: pnpm install
|
|
32
37
|
|
|
33
38
|
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
|
|
34
39
|
run: npm audit signatures
|
|
35
40
|
|
|
36
41
|
- name: Build
|
|
37
|
-
run:
|
|
42
|
+
run: pnpm run build
|
|
38
43
|
|
|
39
44
|
- name: Release
|
|
40
45
|
env:
|
package/.releaserc.json
CHANGED
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
{ "type": "test", "section": "✅ Tests" },
|
|
20
20
|
{ "type": "build", "section": "📦 Build System" },
|
|
21
21
|
{ "type": "ci", "section": "👷 CI/CD" },
|
|
22
|
-
{ "type": "chore", "section": "🔧 Miscellaneous Changes" }
|
|
22
|
+
{ "type": "chore", "section": "🔧 Miscellaneous Changes" },
|
|
23
|
+
{ "type": "imp", "section": "🚀 Improvements" }
|
|
23
24
|
]
|
|
24
25
|
},
|
|
25
26
|
"parserOpts": {
|
|
@@ -50,6 +51,10 @@
|
|
|
50
51
|
{
|
|
51
52
|
"type": "style",
|
|
52
53
|
"release": "patch"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "imp",
|
|
57
|
+
"release": "patch"
|
|
53
58
|
}
|
|
54
59
|
]
|
|
55
60
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [2.3.3](https://github.com/pynickle/semantic-release-minecraft/compare/v2.3.2...v2.3.3) (2025-11-20)
|
|
2
|
+
|
|
3
|
+
### 🐛 Bug Fixes
|
|
4
|
+
|
|
5
|
+
* use api.curseforge.com for prepare ([4ce575b](https://github.com/pynickle/semantic-release-minecraft/commit/4ce575b701c5418497a3040ac642250a815de088))
|
|
6
|
+
|
|
7
|
+
## [2.3.2](https://github.com/pynickle/semantic-release-minecraft/compare/v2.3.1...v2.3.2) (2025-11-18)
|
|
8
|
+
|
|
9
|
+
### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
* just trigger a release ([d8cdf83](https://github.com/pynickle/semantic-release-minecraft/commit/d8cdf83f53aaf1a8ed28c924c034d853176e0a27))
|
|
12
|
+
|
|
13
|
+
### 📚 Documentation
|
|
14
|
+
|
|
15
|
+
* update document for newer version ([21514b5](https://github.com/pynickle/semantic-release-minecraft/commit/21514b59813c2fb93e5d3a00aa5c04c5dc010729))
|
|
16
|
+
|
|
17
|
+
### 🔧 Miscellaneous Changes
|
|
18
|
+
|
|
19
|
+
* add imp for conventional commit type ([4c2d277](https://github.com/pynickle/semantic-release-minecraft/commit/4c2d277d67215ae6e904390db59174e2a79c753b))
|
|
20
|
+
* use pnpm instead of npm ([8d00dd8](https://github.com/pynickle/semantic-release-minecraft/commit/8d00dd88c357edc211ec50799a7e1611cdcb8f70))
|
|
21
|
+
|
|
1
22
|
## [2.3.1](https://github.com/pynickle/semantic-release-minecraft/compare/v2.3.0...v2.3.1) (2025-10-22)
|
|
2
23
|
|
|
3
24
|
### 🐛 Bug Fixes
|
package/README.md
CHANGED
|
@@ -147,7 +147,9 @@ Configure under the `modrinth` object. Requires `project_id` to enable.
|
|
|
147
147
|
|
|
148
148
|
## 🗂️Configuration Reference
|
|
149
149
|
|
|
150
|
-
The following is an example configuration for an Architectury project, demonstrating how to use different options
|
|
150
|
+
The following is an example configuration for an Architectury project, demonstrating how to use different options.
|
|
151
|
+
|
|
152
|
+
If you'd like a more detailed, comprehensive reference, you can find it in my project [Better Client](https://github.com/pynickle/Better-Client).
|
|
151
153
|
|
|
152
154
|
Some quick tips to help you grasp things faster:
|
|
153
155
|
- Each strategy runs once.
|
|
@@ -157,10 +159,20 @@ Some quick tips to help you grasp things faster:
|
|
|
157
159
|
[
|
|
158
160
|
"semantic-release-minecraft",
|
|
159
161
|
{
|
|
160
|
-
"game_versions":
|
|
162
|
+
"game_versions": "1.21.1",
|
|
161
163
|
"mod_loaders": "${ loader }",
|
|
162
|
-
"display_name": "[${ name } 1.21.
|
|
164
|
+
"display_name": "[${ name } 1.21.1] ${ nextRelease.version }",
|
|
163
165
|
"glob": "${ loader }/build/libs/better_client-${ loader }-${ nextRelease.version }.jar",
|
|
166
|
+
"dependencies": [
|
|
167
|
+
{
|
|
168
|
+
"slug": "architectury-api",
|
|
169
|
+
"type": "required"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"slug": "yacl",
|
|
173
|
+
"type": "required"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
164
176
|
"strategies": [
|
|
165
177
|
{
|
|
166
178
|
"loader": "fabric",
|
|
@@ -174,31 +186,11 @@ Some quick tips to help you grasp things faster:
|
|
|
174
186
|
"curseforge": {
|
|
175
187
|
"project_id": "1250626",
|
|
176
188
|
"java_versions": 21,
|
|
177
|
-
"environments": "client"
|
|
178
|
-
"relations": [
|
|
179
|
-
{
|
|
180
|
-
"slug": "yacl",
|
|
181
|
-
"type": "optionalDependency"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"slug": "architectury-api",
|
|
185
|
-
"type": "requiredDependency"
|
|
186
|
-
}
|
|
187
|
-
]
|
|
189
|
+
"environments": "client"
|
|
188
190
|
},
|
|
189
191
|
"modrinth": {
|
|
190
192
|
"project_id": "uWsLN21d",
|
|
191
|
-
"version_number": "${ nextRelease.version }+${ loader }"
|
|
192
|
-
"dependencies": [
|
|
193
|
-
{
|
|
194
|
-
"project_id": "lhGA9TYQ",
|
|
195
|
-
"dependency_type": "optional"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"project_id": "1eAoo2KR",
|
|
199
|
-
"dependency_type": "required"
|
|
200
|
-
}
|
|
201
|
-
]
|
|
193
|
+
"version_number": "${ nextRelease.version }+${ loader }"
|
|
202
194
|
}
|
|
203
195
|
}
|
|
204
196
|
]
|
package/dist/prepare.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../src/prepare.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOlD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAI9D;;GAEG;AACH,wBAAsB,2BAA2B,CAC7C,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,cAAc,GACxB,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../src/prepare.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOlD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAI9D;;GAEG;AACH,wBAAsB,2BAA2B,CAC7C,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,cAAc,GACxB,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAgF1B"}
|
package/dist/prepare.js
CHANGED
|
@@ -24,8 +24,6 @@ export async function getCurseForgeGameVersionIds(apiToken, pluginConfig, contex
|
|
|
24
24
|
const addonGameVersions = toArray(curseforgeConfig.game_versions_for_addon);
|
|
25
25
|
const environments = toArray(curseforgeConfig.environments);
|
|
26
26
|
const javaVersionNames = javaVersions.map((javaVersion) => `Java ${javaVersion}`);
|
|
27
|
-
// TODO: Modrinth 和 CurseForge 的游戏版本命名格式转化,以 Modrinth 为基准
|
|
28
|
-
// const gameVersionNames = gameVersions.map(x => formatCurseForgeGameVersionSnapshot(x));
|
|
29
27
|
// get CurseForge game version IDs from mapped game versions
|
|
30
28
|
const gameVersionIds = findCurseForgeGameVersionIdsByNames(map.game_versions, gameVersions);
|
|
31
29
|
const loaderIds = findCurseForgeGameVersionIdsByNames(map.loaders, modLoaders);
|
|
@@ -57,14 +55,14 @@ async function createCurseForgeGameVersionMap(apiToken) {
|
|
|
57
55
|
* Fetch CurseForge game version and version type information.
|
|
58
56
|
*/
|
|
59
57
|
async function fetchCurseForgeGameVersionInfo(apiToken) {
|
|
60
|
-
const gameVersionsRes = await axios.get('https://
|
|
58
|
+
const gameVersionsRes = await axios.get('https://api.curseforge.com/v1/games/432/versions', {
|
|
61
59
|
headers: {
|
|
62
|
-
'
|
|
60
|
+
'x-api-key': apiToken,
|
|
63
61
|
},
|
|
64
62
|
});
|
|
65
|
-
const gameVersionTypesRes = await axios.get('https://
|
|
63
|
+
const gameVersionTypesRes = await axios.get('https://api.curseforge.com/v1/games/432/version-types', {
|
|
66
64
|
headers: {
|
|
67
|
-
'
|
|
65
|
+
'x-api-key': apiToken,
|
|
68
66
|
},
|
|
69
67
|
});
|
|
70
68
|
const gameVersionTypes = gameVersionTypesRes.data;
|
package/dist/prepare.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare.js","sourceRoot":"","sources":["../src/prepare.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,O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C;AACN,CAAC;AAED;;GAEG;AACH,SAAS,mCAAmC,CACxC,QAAwC,EACxC,KAAe,EACf,WAA8C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACnD,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,WAAW,EAAE;IAEvC,MAAM,MAAM,GAAa,EAAE,CAAC;IAE5B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACvB,IAAI,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QAC3D,IAAI,OAAO;YAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semantic-release-minecraft",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "Automated Release For Minecraft Project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"semantic-release",
|
|
@@ -20,30 +20,30 @@
|
|
|
20
20
|
"semantic-release": "semantic-release"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@trivago/prettier-plugin-sort-imports": "^
|
|
24
|
-
"@types/node": "^24.
|
|
23
|
+
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
|
|
24
|
+
"@types/node": "^24.10.1",
|
|
25
25
|
"@types/lodash": "^4.17.20",
|
|
26
|
-
"eslint": "^9.
|
|
26
|
+
"eslint": "^9.39.1",
|
|
27
27
|
"eslint-config-prettier": "^10.1.8",
|
|
28
28
|
"eslint-plugin-prettier": "^5.5.4",
|
|
29
29
|
"prettier": "^3.6.2",
|
|
30
|
-
"semantic-release": "^25.0.
|
|
30
|
+
"semantic-release": "^25.0.2",
|
|
31
31
|
"@semantic-release/changelog": "^6.0.3",
|
|
32
32
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
33
33
|
"@semantic-release/git": "^10.0.1",
|
|
34
|
-
"@semantic-release/npm": "^13.1.
|
|
34
|
+
"@semantic-release/npm": "^13.1.2",
|
|
35
35
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
36
36
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
37
37
|
"typescript": "^5.9.3",
|
|
38
|
-
"typescript-eslint": "^8.
|
|
38
|
+
"typescript-eslint": "^8.47.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"semantic-release": ">=18.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"axios": "^1.
|
|
45
|
-
"form-data": "^4.0.
|
|
46
|
-
"glob": "^
|
|
44
|
+
"axios": "^1.13.2",
|
|
45
|
+
"form-data": "^4.0.5",
|
|
46
|
+
"glob": "^12.0.0",
|
|
47
47
|
"lodash": "^4.17.21"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/prepare.ts
CHANGED
|
@@ -53,10 +53,7 @@ export async function getCurseForgeGameVersionIds(
|
|
|
53
53
|
const javaVersionNames = javaVersions.map(
|
|
54
54
|
(javaVersion: number) => `Java ${javaVersion}`
|
|
55
55
|
);
|
|
56
|
-
|
|
57
|
-
// TODO: Modrinth 和 CurseForge 的游戏版本命名格式转化,以 Modrinth 为基准
|
|
58
|
-
// const gameVersionNames = gameVersions.map(x => formatCurseForgeGameVersionSnapshot(x));
|
|
59
|
-
|
|
56
|
+
|
|
60
57
|
// get CurseForge game version IDs from mapped game versions
|
|
61
58
|
const gameVersionIds = findCurseForgeGameVersionIdsByNames(
|
|
62
59
|
map.game_versions,
|
|
@@ -143,19 +140,19 @@ async function fetchCurseForgeGameVersionInfo(apiToken: string): Promise<{
|
|
|
143
140
|
types: CurseForgeGameVersionType[];
|
|
144
141
|
}> {
|
|
145
142
|
const gameVersionsRes = await axios.get(
|
|
146
|
-
'https://
|
|
143
|
+
'https://api.curseforge.com/v1/games/432/versions',
|
|
147
144
|
{
|
|
148
145
|
headers: {
|
|
149
|
-
'
|
|
146
|
+
'x-api-key': apiToken,
|
|
150
147
|
},
|
|
151
148
|
}
|
|
152
149
|
);
|
|
153
150
|
|
|
154
151
|
const gameVersionTypesRes = await axios.get(
|
|
155
|
-
'https://
|
|
152
|
+
'https://api.curseforge.com/v1/games/432/version-types',
|
|
156
153
|
{
|
|
157
154
|
headers: {
|
|
158
|
-
'
|
|
155
|
+
'x-api-key': apiToken,
|
|
159
156
|
},
|
|
160
157
|
}
|
|
161
158
|
);
|