Files
spartan-ng__spartan/release.config.mjs
Robin Goetz cd6e903c04 build: setup nightly release (#524)
* chore: lint and cleanup of touched files

* build: add executor to replace version for ui libs

this executor finds all package.json in the libs/ui directory
and replaces the current version
of @spartan-ng with the one defined in UI_VERSION

* build: update cli files to reflect new versions and add scripts to make publishing easier

* chore: fix linting errors

* build: update semantic release config

* build: use same VERSION env var for ui and cli

* fix: remove confusing comment

* fix: add regex only updating spartan specific versions

and a unit test to make sure we don't accidentally mess with other packages

* fix: remove .DS_Store files and filter helm packages to not add them to package.json

* chore: remove unused script

* chore: add generator that auto-increments current version of released assets

* chore: add scripts for nightly release

* chore: add nightly release workflow

* fix: add missing dash

* chore: try on push for testing

* build: auto fix version number in tools

* ci: set up automatic release and committing of changed files

* ci: give release step write permissions

* ci: check out branch correctly so we can commit it back

* ci: try to push to right place

* chore: reorder package.json

* fix: use newVersion to allow for auto increment script to work

* chore: update branch name

* fix: rename release scripts and interface and add missing generators

* chore: release cli & ui 0.0.1-alpha.379

* chore: fix name for trigger

* chore: try to push to origin nightly-release

* chore: nightly release 2024-12-10 ⚡

* chore: update tools version number

* chore: nightly release 2024-12-10 ⚡

* chore: update github flow to work on main and a schedule

* fix: add back lost test and start commands to package.json

* fix: fix tests and commit message to follow guidelines

* feat: adjust version replacement for new single brain package

* fix: use correct alpha version 381

* fix: add back storybook command to package.json

* fix: typo in @spartan-ng/brain version for pagination helm

* fix: remove tests that don't do anything and add formatting of files

---------

Co-authored-by: Leonidas <leonidas@spartan.ng>
2025-01-08 23:53:00 +01:00

47 lines
1.2 KiB
JavaScript

export default {
branches: ['main', { name: 'alpha', prerelease: true }],
preset: 'conventionalcommits',
presetConfig: {
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'chore', section: 'Chores' },
{ type: 'docs', hidden: true },
{ type: 'style', hidden: true },
{ type: 'refactor', section: 'Refactoring' },
{ type: 'perf', hidden: true },
{ type: 'test', hidden: true },
],
},
releaseRules: [{ type: 'refactor', release: 'patch' }],
plugins: [
'@semantic-release/commit-analyzer',
[
'@semantic-release/changelog',
{
changelogFile: './CHANGELOG.md',
},
],
[
'@semantic-release/exec',
{
prepareCmd: 'TAG=latest,VERSION=${nextRelease.version} pnpm run pre-release',
releaseCmd: 'TAG=latest,VERSION=${nextRelease.version} pnpm run release',
},
],
[
'@semantic-release/git',
{
assets: [
'libs/cli/package.json',
'libs/cli/src/generators/base/versions.ts',
'libs/cli/src/generators/ui/supported-ui-libraries.json',
'libs/ui/**/package.json',
'CHANGELOG.md',
],
message: 'chore: release ${nextRelease.version} [skip ci]',
},
],
],
};