autorel 2.5.3 → 2.5.5

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.
Files changed (2) hide show
  1. package/README.md +24 -36
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,8 +12,8 @@ It follows [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/
12
12
  - Run pre-release tasks (tests, builds, etc.)
13
13
  - Bump the version and tag based on commit messages
14
14
  - Create tagged GitHub releases with notes
15
- - Publish to npm
16
- - Run custom scripts
15
+ - Publish to npm registry (or other package managers)
16
+ - Run custom scripts or commands with the new version number available as an environment variable
17
17
 
18
18
  🚀 Like `semantic-release` or `release-please`, but faster, more reliable, and easier to use.
19
19
 
@@ -42,18 +42,19 @@ Use Autorel to save time, prevent broken releases, and ship with confidence.
42
42
 
43
43
  - [Example Usage (CLI)](#example-usage-cli)
44
44
  - [Example Usage (Library)](docs/usage-library.md)
45
- - [System Requirements](#system-requirements)
46
- - [Commit Messages](#commit-messages)
45
+ - [Configuring GitHub Permissions](#configuring-github-permissions)
47
46
  - [Usage with GitHub Actions](#usage-with-github-actions)
47
+ - [Commit Messages](#commit-messages)
48
48
  - [Usage with Other Repositories (not GitHub)](#usage-with-other-repositories-not-github)
49
49
  - [Usage with Other Languages (not Node.js)](#usage-with-other-languages-not-nodejs)
50
50
  - [Configuration](docs/configuration.md)
51
51
  - [Sample YAML Configuration](docs/configuration.md#sample-yaml-configuration)
52
52
  - [Types](#types)
53
- - [Debug Mode](#debug-mode)
53
+ - [Verbose Mode](#verbose-mode)
54
54
  - [About package.json versions](#about-packagejson-versions)
55
55
  - [FAQ](docs/faq.md)
56
- - [Support, Feedback, and Contributions](#support-feedback-and-contributions)
56
+ - [System Requirements](#system-requirements)
57
+ - [Contributing](#contributing)
57
58
  - [License](#license)
58
59
 
59
60
  ## Example Usage (CLI)
@@ -76,40 +77,23 @@ npm i -g autorel
76
77
  autorel --publish
77
78
  ```
78
79
 
79
- ### ⚠️ Avoiding Breaking Changes
80
-
81
- If using the `npx` command, you may want to append the version number to prevent breaking changes in the future. You can do this by appending `@^` followed by the major version number, ie. `npx autorel@^2`.
80
+ > ⚠️ If using the `npx` command, you may want to append the version number to prevent breaking changes in the future. You can do this by appending `@^` followed by the major version number, ie. `npx autorel@^2`.
82
81
 
83
82
  ## Example Usage (Library)
84
83
 
85
- 1. Install `autorel` as a dependency
86
-
87
- ```bash
88
- npm i autorel
89
- ```
84
+ See [Using `autorel` as a library](/docs/usage-library.md)
90
85
 
91
- 2. Import and use in your project to build custom release tooling
86
+ ## Configuring GitHub Permissions
92
87
 
93
- ```typescript
94
- import {autorel, defaultConfig} from 'autorel';
88
+ In order for `autorel` to create releases and publish to GitHub's npm registry, you'll need to make sure you have the appropriate access/permissions.
95
89
 
96
- const autorelConfig = {
97
- ...defaultConfig,
98
- publish: true,
99
- };
90
+ If you're using GitHub Actions, see [Using `autorel` with GitHub Actions](/docs/github-actions.md#permissions) for more information.
100
91
 
101
- autorel(autorelConfig).then((nextVersion) => {
102
- console.log(`Next version is ${nextVersion}`); // ie, "Next version is 1.0.1"
103
- });
104
- ```
92
+ If you're running it locally (or using a different CI/CD system), you can pass your [GitHub Personal Access Token (PAT)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) either by setting the `GITHUB_TOKEN` environment variable or by passing the `--github-token (githubToken: string)` flag.
105
93
 
106
- ## System Requirements
94
+ ## Usage with GitHub Actions
107
95
 
108
- - Linux or MacOS (Windows is not officially supported)
109
- - Node.js 14+
110
- - NPM 7+
111
- - Git 2.13+
112
- - Bash
96
+ Autorel 💜 GitHub Actions. See [Using `autorel` with GitHub Actions](/docs/github-actions.md)
113
97
 
114
98
  ## Commit Messages
115
99
 
@@ -123,10 +107,6 @@ Here are some examples of commit messages and the resulting [SemVer](https://sem
123
107
 
124
108
  You can find more examples in the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) documentation.
125
109
 
126
- ## Usage with GitHub Actions
127
-
128
- Autorel 💜 GitHub Actions. See [Using `autorel` with GitHub Actions](/docs/github-actions.md)
129
-
130
110
  ## Configuration
131
111
 
132
112
  See [Configuration](docs/configuration.md) for reference and examples.
@@ -135,7 +115,7 @@ See [Configuration](docs/configuration.md) for reference and examples.
135
115
 
136
116
  You can find the types defined at [src/index.ts](src/index.ts).
137
117
 
138
- ## Verbose Mode (Debug Mode)
118
+ ## Verbose Mode
139
119
 
140
120
  To enable verbose mode, set `--verbose (verbose: true)` or environment variable `AUTOREL_DEBUG=1`:
141
121
 
@@ -165,6 +145,14 @@ Simply omit the `--publish` flag (arg: `publish: false`, which is default) to sk
165
145
 
166
146
  If you're interested in contributing built-in support for other systems, please open an issue or PR.
167
147
 
148
+ ## System Requirements
149
+
150
+ - Linux or MacOS (Windows is not officially supported)
151
+ - Node.js 14+
152
+ - npm 7+
153
+ - Git 2.13+
154
+ - Bash
155
+
168
156
  ## Contributing
169
157
 
170
158
  - ⭐ Star this repo if you like it!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autorel",
3
- "version": "2.5.3",
3
+ "version": "2.5.5",
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)",