开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.
build: add release-version script
pubuzhixing897e2b0c07967
diff --git a/nx.json b/nx.jsonindex a7e59b5..e14e5c1 100644--- a/nx.json+++ b/nx.json@@ -1,7 +1,10 @@{"$schema": "./node_modules/nx/schemas/nx-schema.json","namedInputs": {- "default": ["{projectRoot}/**/*", "sharedGlobals"],+ "default": [+ "{projectRoot}/**/*",+ "sharedGlobals"+ ],"production": ["default","!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",@@ -67,19 +70,15 @@"workspaceChangelog": true,"file": "CHANGELOG.md","git": {- "commit": true,- "commitMessage": "chore(release): publish {version}",- "tag": true,- "tagMessage": "v{version}"+ "commit": false,+ "tag": false}},"version": {"git": {- "commit": true,- "commitMessage": "chore(release): publish {version}",- "tag": true,- "tagMessage": "v{version}"+ "commit": false,+ "tag": false}}}-}+}\ No newline at end of filediff --git a/package.json b/package.jsonindex 6f7f5cf..713c711 100644--- a/package.json+++ b/package.json@@ -6,7 +6,7 @@"start": "nx serve web --host=0.0.0.0","build": "nx run-many -t=build","test": "nx run-many -t=test",- "release:version": "nx release version && nx release changelog",+ "release:version": "node scripts/release-version.js","release:publish": "nx release publish"},"private": true,diff --git a/scripts/release-version.js b/scripts/release-version.jsnew file mode 100644index 0000000..604170f--- /dev/null+++ b/scripts/release-version.js@@ -0,0 +1,17 @@+const { execSync } = require('child_process');++// Run nx release version+execSync('nx release version', { stdio: 'inherit' });++// Get the new version from react-text/package.json+const version = require('../packages/react-text/package.json').version;++// Run nx release changelog+execSync(`nx release changelog ${version}`, { stdio: 'inherit' });++// Commit all changes with a single commit message+execSync('git add .', { stdio: 'inherit' });+execSync(`git commit -m "chore(release): publish ${version}"`, { stdio: 'inherit' });++// Create a Git tag for the release+execSync(`git tag -a v${version} -m "v${version}"`, { stdio: 'inherit' });