autorel 2.5.7 → 2.5.9

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 +9 -66
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,17 +41,8 @@ Use Autorel to save time, prevent broken releases, and ship with confidence.
41
41
  ## Table of Contents
42
42
 
43
43
  - [Example Usage (CLI)](#example-usage-cli)
44
- - [Example Usage (Library)](docs/usage-library.md)
45
- - [Configuring GitHub Permissions](#configuring-github-permissions)
46
- - [Usage with GitHub Actions](#usage-with-github-actions)
44
+ - [Usage](/docs/usage.md)
47
45
  - [Commit Messages](#commit-messages)
48
- - [Usage with Other Repositories (not GitHub)](#usage-with-other-repositories-not-github)
49
- - [Usage with Other Languages (not Node.js)](#usage-with-other-languages-not-nodejs)
50
- - [Configuration](docs/configuration.md)
51
- - [Sample YAML Configuration](docs/configuration.md#sample-yaml-configuration)
52
- - [Types](#types)
53
- - [Verbose Mode](#verbose-mode)
54
- - [About package.json versions](#about-packagejson-versions)
55
46
  - [FAQ](docs/faq.md)
56
47
  - [System Requirements](#system-requirements)
57
48
  - [Contributing](#contributing)
@@ -70,30 +61,20 @@ This will:
70
61
  3. Update package.json and publish the release to NPM (does not commit the change to the repository, see below)
71
62
  4. Run the command `echo "Next version is ${NEXT_VERSION}"`
72
63
 
73
- You can also install `autorel` globally and run it directly:
64
+ However, we recommend you simply call `npx autorel@^2` in your CI/CD pipeline (or locally) and set your configuration in the `.autorel.yaml` file like so:
74
65
 
75
- ```bash
76
- npm i -g autorel
77
- autorel --publish
66
+ ```yaml
67
+ # .autorel.yaml
68
+ publish: true
69
+ run: |
70
+ echo "Next version is ${NEXT_VERSION}"
78
71
  ```
79
72
 
80
73
  > ⚠️ 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`.
81
74
 
82
- ## Example Usage (Library)
83
-
84
- See [Using `autorel` as a library](/docs/usage-library.md)
85
-
86
- ## Configuring GitHub Permissions
87
-
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.
89
-
90
- If you're using GitHub Actions, see [Using `autorel` with GitHub Actions](/docs/github-actions.md#permissions) for more information.
91
-
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.
93
-
94
- ## Usage with GitHub Actions
75
+ ## Usage and Configuration
95
76
 
96
- Autorel 💜 GitHub Actions. See [Using `autorel` with GitHub Actions](/docs/github-actions.md)
77
+ See [Usage](/docs/usage.md) and [Configuration Options](/docs/configuration-options.md) for more information.
97
78
 
98
79
  ## Commit Messages
99
80
 
@@ -107,44 +88,6 @@ Here are some examples of commit messages and the resulting [SemVer](https://sem
107
88
 
108
89
  You can find more examples in the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) documentation.
109
90
 
110
- ## Configuration
111
-
112
- See [Configuration](docs/configuration.md) for reference and examples.
113
-
114
- ## Types
115
-
116
- You can find the types defined at [src/index.ts](src/index.ts).
117
-
118
- ## Verbose Mode
119
-
120
- To enable verbose mode, set `--verbose (verbose: true)` or environment variable `AUTOREL_DEBUG=1`:
121
-
122
- ```bash
123
- npx autorel --verbose
124
- ```
125
-
126
- ## About package.json versions
127
-
128
- If using our npm publishing feature, 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)
129
-
130
- If you need access to the new version number in your CI/CD pipeline, you can use the `NEXT_VERSION` or `NEXT_TAG` environment variables.
131
-
132
- ## Usage with Other Repositories (not GitHub)
133
-
134
- `autorel` is designed to work with any CI/CD system, not just GitHub Actions. You can use it with GitLab, Bitbucket, Jenkins, or any other system that supports running shell commands and meets our [system requirements](#system-requirements).
135
-
136
- Simply use the `--skip-release` flag (arg: `skipRelease: true`) to skip creating a release on GitHub. Then, you can use the `--run` flag (arg: `run: string`) to run any command or script after the version bump with the new version number available as an environment variable [see below](#run).
137
-
138
- If you're interested in contributing built-in support for other systems, please open an issue or PR.
139
-
140
- ## Usage with Other Languages (not Node.js)
141
-
142
- `autorel` is designed to work with any language or platform. You can use it with Python, Ruby, Go, Java, or any other language.
143
-
144
- Simply omit the `--publish` flag (arg: `publish: false`, which is default) to skip publishing to NPM. Then, you can use either the `--run` flag (arg: `run: string`) or `runScript: string` arg to run any command or script after the version bump with the new version number available as an environment variable [see below](#run).
145
-
146
- If you're interested in contributing built-in support for other systems, please open an issue or PR.
147
-
148
91
  ## System Requirements
149
92
 
150
93
  - Linux or MacOS (Windows is not officially supported)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autorel",
3
- "version": "2.5.7",
3
+ "version": "2.5.9",
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)",