mirror of
https://github.com/openclaw/lobster.git
synced 2026-08-14 00:48:09 +00:00
chore: prepare 2026.4.6 release metadata (#61)
* chore: prepare 2026.4.6 release metadata * docs: finalize 2026.4.6 release notes
This commit is contained in:
@@ -111,6 +111,44 @@ jobs:
|
||||
|
||||
echo "Validated ${PACKAGE_NAME}@${PACKAGE_VERSION}"
|
||||
|
||||
- name: Validate changelog entry for release version
|
||||
env:
|
||||
RELEASE_TAG: ${{ inputs.tag }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
RELEASE_VERSION="${RELEASE_TAG#v}"
|
||||
node - <<'NODE'
|
||||
const fs = require('node:fs');
|
||||
|
||||
const releaseVersion = process.env.RELEASE_VERSION;
|
||||
const changelog = fs.readFileSync('CHANGELOG.md', 'utf8');
|
||||
const lines = changelog.split(/\r?\n/);
|
||||
const heading = `## ${releaseVersion}`;
|
||||
const start = lines.findIndex((line) => line.trim() === heading);
|
||||
|
||||
if (start === -1) {
|
||||
console.error(`CHANGELOG.md is missing a release section for ${releaseVersion}.`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
let hasBullet = false;
|
||||
for (let idx = start + 1; idx < lines.length; idx += 1) {
|
||||
const trimmed = lines[idx].trim();
|
||||
if (trimmed.startsWith('## ')) break;
|
||||
if (trimmed.startsWith('- ')) {
|
||||
hasBullet = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasBullet) {
|
||||
console.error(`CHANGELOG.md section ${heading} must contain at least one bullet item.`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log(`Validated CHANGELOG.md section ${heading}`);
|
||||
NODE
|
||||
|
||||
- name: Ensure version is not already published
|
||||
env:
|
||||
PREFLIGHT_ONLY: ${{ inputs.preflight_only }}
|
||||
@@ -274,6 +312,44 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Validate changelog entry for release version
|
||||
env:
|
||||
RELEASE_TAG: ${{ inputs.tag }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
RELEASE_VERSION="${RELEASE_TAG#v}"
|
||||
node - <<'NODE'
|
||||
const fs = require('node:fs');
|
||||
|
||||
const releaseVersion = process.env.RELEASE_VERSION;
|
||||
const changelog = fs.readFileSync('CHANGELOG.md', 'utf8');
|
||||
const lines = changelog.split(/\r?\n/);
|
||||
const heading = `## ${releaseVersion}`;
|
||||
const start = lines.findIndex((line) => line.trim() === heading);
|
||||
|
||||
if (start === -1) {
|
||||
console.error(`CHANGELOG.md is missing a release section for ${releaseVersion}.`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
let hasBullet = false;
|
||||
for (let idx = start + 1; idx < lines.length; idx += 1) {
|
||||
const trimmed = lines[idx].trim();
|
||||
if (trimmed.startsWith('## ')) break;
|
||||
if (trimmed.startsWith('- ')) {
|
||||
hasBullet = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasBullet) {
|
||||
console.error(`CHANGELOG.md section ${heading} must contain at least one bullet item.`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log(`Validated CHANGELOG.md section ${heading}`);
|
||||
NODE
|
||||
|
||||
- name: Ensure version is not already published
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
Reference in New Issue
Block a user