Skip to content

Commit

Permalink
docs(releasing): Update steps to fix broken releases
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyJones committed Jan 29, 2021
1 parent 6eab8e8 commit 3647cc9
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,28 @@ determine if npm has a version that doesn't exist in the master branch.
If this has happened, you will need to manually put the release commit in.

```
npm run release # This tags, commits and updates the changelog only
# First delete the new tag
# somehow this ends up in the repository
# even though the push fails.
git checkout master
git pull --tags
git tag -d <broken-version>
git push -delete origin <broken-version>
# If there are changes that introduce features, then you'll have to branch and probably rebase
# Now create a new commit + tag for the version:
npm run release
# Push that tag + commit
git push origin master --follow-tags
```

- Don't forget to create a new release in github.

Depending on the nature of the new commits to master after the release, you
may need to rebase them on top of the tagged release commit and force push.
may need to rebase them on top of the tagged release commit and force push (only do this
if the released version would be different to the version tagged by `npm run release`)

0 comments on commit 3647cc9

Please sign in to comment.