-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c2812f
commit 6185133
Showing
4 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env kotlin | ||
|
||
@file:DependsOn("com.fasterxml.jackson.module:jackson-module-kotlin:2.17.0") | ||
|
||
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper | ||
import com.fasterxml.jackson.module.kotlin.readValue | ||
import java.io.File | ||
|
||
data class Module(val name: String, val version: String) | ||
|
||
val modulesWithVersionsJson = args[0] | ||
|
||
val modules: List<Module> = jacksonObjectMapper().readValue(modulesWithVersionsJson) | ||
|
||
for (module in modules) { | ||
val moduleName = module.name | ||
val version = module.version | ||
val pattern = Regex("## \\[$version\\]") | ||
val changelogContent = File("./$moduleName/CHANGELOG.md").readText() | ||
if (pattern.containsMatchIn(changelogContent)) { | ||
println("✅ Version string $version found in CHANGELOG.md for module $moduleName") | ||
} else { | ||
println("⛔️ String $version not found in CHANGELOG.md for module $moduleName") | ||
System.exit(1) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.4.0] - 2024-05-21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@tidal-music/auth", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"type": "module", | ||
"files": [ | ||
"dist" | ||
|