Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ This is a simple npm init package to add the perfect release-plan setup. Running

## Usage

### Disallow rebase merging on your repository

Rebase merging produces commits on the main branch that do not include a link to the original PR. When used, `release-plan` will not be able to produce a correct changelog and determine the version bump to perform.

Make sure [rebase merging is disallowed](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-rebasing-for-pull-requests) when using `release-plan`.

### Generate a GitHub personal access token

1. Obtain a [GitHub personal access token](https://github.com/settings/tokens/new?scopes=repo&description=GITHUB_AUTH+env+variable).
2. Make sure the token is available locally as the `GITHUB_AUTH` environment variable. (you can also prepend it to the init script)

For instance:
```bash
export GITHUB_AUTH=abc123def456
Expand Down Expand Up @@ -58,14 +64,14 @@ As this workflow automatically creates a PR for you during the release process y

### Set up Trusted Publishing for your package

Once you're ready to do your first release with this release-plan setup your GitHub Actions will
Once you're ready to do your first release with this release-plan setup your GitHub Actions will
need to be authorized to publish your package to npm. To do this, you will set up
[Trusted Publishing](https://docs.npmjs.com/trusted-publishers#for-github-actions) for your package.
This is sometimes referred to as 'OIDC'.

If you are creating a new package, you will need to manually publish once first
in order to have access to settings to set up Trusted Publishing.
Be sure you are okay with the version in `package.json` as the first version then run `npm publish`.
If you are creating a new package, you will need to manually publish once first
in order to have access to settings to set up Trusted Publishing.
Be sure you are okay with the version in `package.json` as the first version then run `npm publish`.

Now you should be free to merge your PR and release your package with release-plan 🎉

Expand Down
2 changes: 2 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Releases in this repo are mostly automated using [release-plan](https://github.com/embroider-build/release-plan/). Once you label all your PRs correctly (see below) you will have an automatically generated PR that updates your CHANGELOG.md file and a `.release-plan.json` that is used to prepare the release once the PR is merged.

Make sure you never merge PRs with rebase when using `release-plan`. You can [disallow rebase merging](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-rebasing-for-pull-requests) in your repository settings.

## Preparation

Since the majority of the actual release process is automated, the remaining tasks before releasing are:
Expand Down