Skip to content

Release process (post 0.2.0)

Tiago Bento edited this page Jan 6, 2020 · 5 revisions

1

  1. Make sure you're on the master branch and have no changes.
  2. Run yarn run update-version-to {version}
  3. Update README.md of vscode-extension-pack-kogito-kie-editors with the release notes.
  4. yarn run init && yarn run build:prod
  5. git add .
  6. git commit -am "Release {version}"
  7. git checkout -b {version}-prerelease

2

These steps are temporary until we figure out how to download the editors during the build.

  1. Copy WAR contents of editors to kie-bc-editors-unpacked
  2. git add -f packages/kie-bc-editors-unpacked/bpmn packages/kie-bc-editors-unpacked/dmn
  3. git commit -am "unpacked editors"

3

  1. git push origin {version}-prerelease⚠ This will trigger a GitHub Workflow

This workflow will create a Draft Release on GitHub with the artifacts ready. It will also update the kogito-online GitHub page to contain the resources for the next version of the Chrome Extension. If something's wrong, you can push again and the kogito-online GitHub page will be updated again and a new Draft Release will be created on GitHub.

  1. Wait for GitHub Workflow "Create draft release" to be complete.
  2. Perform sanity checks with the artifacts
  3. Change the target branch for the release to {version}-prerelease
  4. Write the release text
  5. Publish release ⟶ ⚠ This will trigger a GitHub Workflow

This Workflow will finish updating kogito-online GitHub Page. That means updating the /editors/latest URI to point to the version that was just released.

It will also publish the artifacts to NPM, so it cannot be re-run.

4

  1. Wait for "Publish release artifacts" to be ready
  2. git push origin master
  3. Run yarn run update-version-to {next-version}
  4. git commit -am "Bump version to {next-version}"
  5. git push origin master

Done!

After all that, you should have two commits on master:

1. Release {version}
2. Bump version to {next-version}

You should also have a tag called {version} with non-empty packages/kie-bc-editors-unpacked/[bpmn/dmn] folders and a yarn.lock on the repository root dir.

Clone this wiki locally