|
1 | 1 | /** |
2 | | - * universal-version-bump v0.10.3 |
| 2 | + * universal-version-bump v0.10.4 |
3 | 3 | * Universal Version Bump |
4 | 4 | * |
5 | 5 | * Description: A GitHub Action to automatically bump versions across any app (Node, Python, PHP, Docker, etc.) |
6 | 6 | |
7 | 7 | * Homepage: https://github.com/taj54/universal-version-bump#readme |
8 | 8 | * License: MIT |
9 | | - * Generated on Fri, 29 Aug 2025 18:37:37 GMT |
| 9 | + * Generated on Fri, 29 Aug 2025 19:02:47 GMT |
10 | 10 | */ |
11 | 11 | require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap |
12 | 12 | /******/ var __webpack_modules__ = ({ |
@@ -32972,6 +32972,7 @@ var __importStar = (this && this.__importStar) || (function () { |
32972 | 32972 | Object.defineProperty(exports, "__esModule", ({ value: true })); |
32973 | 32973 | exports.ChangelogService = void 0; |
32974 | 32974 | const core = __importStar(__nccwpck_require__(9999)); |
| 32975 | +const errors_1 = __nccwpck_require__(4830); |
32975 | 32976 | /** |
32976 | 32977 | * Service for managing the changelog file. |
32977 | 32978 | */ |
@@ -33019,7 +33020,16 @@ class ChangelogService { |
33019 | 33020 | */ |
33020 | 33021 | async updateChangelog(changelogContent) { |
33021 | 33022 | const changelogPath = this._getChangelogPath(); |
33022 | | - const existingChangelog = await this.fileHandler.readFile(changelogPath); |
| 33023 | + let existingChangelog; |
| 33024 | + try { |
| 33025 | + existingChangelog = await this.fileHandler.readFile(changelogPath); |
| 33026 | + } |
| 33027 | + catch (error) { |
| 33028 | + if (error instanceof errors_1.FileNotFoundError) { |
| 33029 | + throw new errors_1.FileNotFoundError(`Changelog file not found at ${changelogPath}`); |
| 33030 | + } |
| 33031 | + throw error; |
| 33032 | + } |
33023 | 33033 | const versionMatch = changelogContent.match(/## v(\d+\.\d+\.\d+)/); |
33024 | 33034 | if (versionMatch) { |
33025 | 33035 | const newVersion = versionMatch[0]; |
|
0 commit comments