Sha256: 287f80d72db0dbe384d96eeff592ab7921dae4e927f15e4e1d13ce3e4429dfa8

Contents?: true

Size: 1.54 KB

Versions: 4

Compression:

Stored size: 1.54 KB

Contents

# Releasing

_This guide is a work-in-progress._

---

## Before the release

All of the following is now covered by `bin/rake release:prepare VERSION=v1.2.3`

1. Update the version
  - Update `lib/opal/version.rb`
  - Update `opal/corelib/constants.rb` with the same version number along with release dates
2. Update the changelog
  - Ensure all the unreleased changes are documented in UNRELEASED.md
  - [skip for pre-releases] Run `bin/rake changelog VERSION=v1.2.3` specifying the version number you're about to release
  - [skip for pre-releases] Empty UNRELEASED.md
3. Commit the updated changelog along with the version bump using this commit message: "Release v1.2.3"

---

## Release!

- Push the commit to `master`
- Run `bin/rake release` to release the new version to Rubygems
- Go to GitHub releases and create a new release from the latest tag pasting the contents from CHANGELOG.md (or UNRELEASED.md for pre-releases)

---

## After the release

### Opal docs

- Open `opal-docs` and run `bin/build v1.2.3`
- Then run `bin/deploy`

### [skip for pre-releases] Opal site

- Open `opal.github.io` and update the opal version in the `Gemfile`
- run `bin/build`
- `git push` the latest changes

### Opal CDN

- Run `bin/release v1.2.3`

### [skip for minor-releases] Prepare for the next release

- Create a new pull request that:
  - Updates a version to `v1.x.0.dev` in both `lib/opal/version.rb` and `opal/corelib/constants.rb`
- Remember to merge that PR before merging anything else next once we decide to not release any more point releases from `master`.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-1.8.2 docs/releasing.md
opal-1.8.1 docs/releasing.md
opal-1.8.0 docs/releasing.md
opal-1.8.0.beta1 docs/releasing.md