Skip to content

Commit

Permalink
Change build number generation (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tostti authored and yenienserrano committed Sep 10, 2024
1 parent eeb9def commit aca7905
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ All notable changes to the Wazuh app project will be documented in this file.

- Changed default theme [#174](https://github.com/wazuh/wazuh-dashboard/pull/174)
- Changed default logos and main menu app categories [141](https://github.com/wazuh/wazuh-dashboard/pull/141)
- Changed default value of useExpandedHeader to false. [#247](https://github.com/wazuh/wazuh-dashboard/pull/247)
- Changed default value of useExpandedHeader to false [#247](https://github.com/wazuh/wazuh-dashboard/pull/247)
- Changed build number to match the Wazuh standard [#284](https://github.com/wazuh/wazuh-dashboard/pull/284)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion src/dev/build/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ interface Package {
workspaces: {
packages: string[];
};
wazuh: { version: string };
wazuh: { version: string; revision: string };
[key: string]: unknown;
}

Expand Down
2 changes: 1 addition & 1 deletion src/dev/build/tasks/create_package_json_task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const CreatePackageJson: Task = {
version: config.getBuildVersion(),
branch: pkg.branch,
build: {
number: config.getBuildNumber(),
number: pkg.wazuh.version.replace(/\./g, '') + pkg.wazuh.revision,
sha: config.getBuildSha(),
distributable: true,
release: config.isRelease,
Expand Down

0 comments on commit aca7905

Please sign in to comment.