Files
test-repo/scripts/release/README.md
T
2023-12-17 22:51:37 +09:00

23 lines
1.1 KiB
Markdown

# Release script
## Usage
```sh
node ./scripts/release/release.js --version NEW_VERSION
```
The script has its own `package.json` so we can reinstall the root's `node_modules/` while making the release.
## Flags
| Flag | Description |
| ----------------------------- | --------------------------------------------------------------------------------------- |
| `--manual` | Manual run release process instead of publish from GitHub actions |
| `--dry` | Dry run |
| `--skip-dependencies-install` | Skip dependencies installation |
| `--next` | Pre-release such as alpha and beta. It must be run on the `next` branch or it will fail |
## Credits
This script was inspired by [React's release script](https://github.com/facebook/react/tree/001f9ef/scripts/release).