Spaces:
Sleeping
Sleeping
Download scripts/release-version.js from manhteky123/mindmap: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/spaces/manhteky123/mindmap/resolve/main/scripts/release-version.js
- Command line
-
hf download hf://spaces/manhteky123/mindmap/scripts/release-version.js
-
curl -L -o release-version.js https://huggingface.co/spaces/manhteky123/mindmap/resolve/main/scripts/release-version.js
661 Bytes
| 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' }); | |