mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-12 04:01:20 +00:00
refactor(native): move Landlock workspace to native/system
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* Bump, stage, and commit a release in one command:
|
||||
* `pnpm release:commit <major|minor|patch|x.y.z>`. The namespaced tag stays
|
||||
* manual — create it from the merged release commit.
|
||||
*/
|
||||
|
||||
import path from 'node:path';
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import { packageDirs, readJson, root } from './repo.mjs';
|
||||
|
||||
const bump = process.argv[2];
|
||||
|
||||
function run(command, args) {
|
||||
const result = spawnSync(command, args, {
|
||||
cwd: root,
|
||||
stdio: 'inherit',
|
||||
env: { ...process.env, CI: 'true' },
|
||||
});
|
||||
if (result.error) throw result.error;
|
||||
if (result.status !== 0) {
|
||||
process.exit(result.status ?? 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (!bump) {
|
||||
console.error('Usage: pnpm release:commit <major|minor|patch|x.y.z>');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
run('node', ['./scripts/bump-release.mjs', bump]);
|
||||
|
||||
const version = readJson(path.join(root, packageDirs()[0], 'package.json')).version;
|
||||
run('git', [
|
||||
'add',
|
||||
'package.json',
|
||||
'packages/*/package.json',
|
||||
'../../pnpm-lock.yaml',
|
||||
]);
|
||||
run('git', ['commit', '-m', `release(landlock-run): ${version}`]);
|
||||
|
||||
console.log(`Committed release ${version}. Create the tag manually: git tag landlock-run-v${version}`);
|
||||
Reference in New Issue
Block a user