2018-06-05 16:37:52 -03:00
|
|
|
# Release script
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
2018-08-08 23:49:22 +08:00
|
|
|
```sh
|
2024-06-18 08:25:54 +08:00
|
|
|
node ./scripts/release/release.js
|
2018-06-05 16:37:52 -03:00
|
|
|
```
|
|
|
|
|
|
2020-03-21 18:48:04 +02:00
|
|
|
The script has its own `package.json` so we can reinstall the root's `node_modules/` while making the release.
|
2018-06-05 16:37:52 -03:00
|
|
|
|
2022-10-14 17:17:47 +08:00
|
|
|
## Flags
|
|
|
|
|
|
2023-12-17 22:51:37 +09:00
|
|
|
| Flag | Description |
|
|
|
|
|
| ----------------------------- | --------------------------------------------------------------------------------------- |
|
2024-06-18 08:25:54 +08:00
|
|
|
| `--version` | Version to release |
|
2023-12-17 22:51:37 +09:00
|
|
|
| `--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 |
|
2022-10-14 17:17:47 +08:00
|
|
|
|
2018-06-05 16:37:52 -03:00
|
|
|
## Credits
|
|
|
|
|
|
|
|
|
|
This script was inspired by [React's release script](https://github.com/facebook/react/tree/001f9ef/scripts/release).
|