autorel 1.0.7 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,6 @@ Autorel automatically does the following, if appropriate:
|
|
|
24
24
|
- No confusing configuration files or complex setup
|
|
25
25
|
- Works with any CI/CD system, including GitHub Actions
|
|
26
26
|
- Built-in bash script support
|
|
27
|
-
- Works with other languages, not just Node.js
|
|
28
27
|
|
|
29
28
|
**🚀 Fast & Lightweight**
|
|
30
29
|
- Minimal dependencies and fast execution written in TypeScript
|
|
@@ -35,12 +34,14 @@ Autorel automatically does the following, if appropriate:
|
|
|
35
34
|
|
|
36
35
|
- [Example Usage (CLI)](#example-usage-cli)
|
|
37
36
|
- [Example Usage (Library)](#example-usage-library)
|
|
37
|
+
- [Quick Start](#quick-start)
|
|
38
38
|
- [Usage with GitHub Actions](#usage-with-github-actions)
|
|
39
39
|
- [Example Commit Messages](#example-commit-messages)
|
|
40
40
|
- [Configuration](#configuration)
|
|
41
41
|
- [Sample YAML Configuration](#sample-yaml-configuration)
|
|
42
42
|
- [Types](#types)
|
|
43
43
|
- [Debug Mode](#debug-mode)
|
|
44
|
+
- [FAQ](docs/faq.md)
|
|
44
45
|
- [Support, Feedback, and Contributions](#support-feedback-and-contributions)
|
|
45
46
|
|
|
46
47
|
# Example Usage (CLI)
|
|
@@ -63,6 +64,8 @@ npm i -g autorel
|
|
|
63
64
|
autorel --publish
|
|
64
65
|
```
|
|
65
66
|
|
|
67
|
+
> ❗️ The package.json file's version will be updated in memory before being pushed to npm, as this is the only place where it's actually required. The change will not be pushed to the repository, as it is not necessary and could cause conflicts. See [this post](https://semantic-release.gitbook.io/semantic-release/support/faq)
|
|
68
|
+
|
|
66
69
|
# Example Usage (Library)
|
|
67
70
|
|
|
68
71
|
1. Install `autorel` as a dependency
|
|
@@ -76,12 +79,31 @@ autorel --publish
|
|
|
76
79
|
```typescript
|
|
77
80
|
import {autorel} from 'autorel';
|
|
78
81
|
|
|
79
|
-
autorel({
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
});
|
|
82
|
+
const nextVersion = await autorel({publish: true});
|
|
83
|
+
|
|
84
|
+
console.log(`Next version is ${nextVersion}`);
|
|
83
85
|
```
|
|
84
|
-
|
|
86
|
+
# Quick Start
|
|
87
|
+
|
|
88
|
+
There are many ways to use `autorel`. Here are a few common scenarios:
|
|
89
|
+
|
|
90
|
+
1. **CLI**: Run `autorel` directly from the command line
|
|
91
|
+
2. **Library**: Import `autorel` into your project and use it as a library
|
|
92
|
+
3. **CI/CD pipeline**: Use `autorel` with GitHub Actions, CircleCI, Jenkins, etc. to automate your releases
|
|
93
|
+
|
|
94
|
+
You can also use `autorel` with other languages, not just Node.js. Just make sure you have Node.js installed on the system.
|
|
95
|
+
|
|
96
|
+
If you want to use GitHub Actions to automate your releases, [see here](#usage-with-github-actions) for setup and sample configuration.
|
|
97
|
+
|
|
98
|
+
It's also recommended you create a `.autorel.yaml` file in the root of your project to [configure](#configuration) `autorel`. Example:
|
|
99
|
+
|
|
100
|
+
```yaml
|
|
101
|
+
branches:
|
|
102
|
+
- {name: 'main'}
|
|
103
|
+
- {name: 'alpha', channel: 'alpha'}
|
|
104
|
+
- {name: 'beta', channel: 'beta'}
|
|
105
|
+
publish: true
|
|
106
|
+
```
|
|
85
107
|
|
|
86
108
|
# Usage with GitHub Actions
|
|
87
109
|
|
|
@@ -126,6 +148,8 @@ jobs:
|
|
|
126
148
|
run: npx autorel --publish
|
|
127
149
|
```
|
|
128
150
|
|
|
151
|
+
It's also recommended you create a `.autorel.yaml` file in the root of your project to [configure](#configuration) `autorel`.
|
|
152
|
+
|
|
129
153
|
# Example Commit Messages
|
|
130
154
|
|
|
131
155
|
Here are some examples of commit messages and the resulting version bump (default configuration):
|
package/dist/index.d.ts
CHANGED
|
@@ -20,4 +20,4 @@ export type Config = {
|
|
|
20
20
|
branches: ReleaseBranch[];
|
|
21
21
|
};
|
|
22
22
|
export declare function getPrereleaseChannel(config: Config): string | undefined;
|
|
23
|
-
export declare function autorel(args: Config): Promise<
|
|
23
|
+
export declare function autorel(args: Config): Promise<string | undefined>;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autorel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Automate semantic releases based on conventional commits. Similar to semantic-release but much simpler.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc H. Weiner <mhweiner234@gmail.com> (https://mhweiner.com)",
|