Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 2.27 KB

RELEASE.md

File metadata and controls

70 lines (49 loc) · 2.27 KB

Release

Instructions to release and publish the project artifacts to the npmjs.org registry.

GitHub workflows

The release process is implemented by 3 GitHub workflows.

Update version and create Release PR

Manual workflow that generates a PR with the version that will be released. This workflow will require as input the type of version to be generated and will generate a new plugin version value using the npm version command.

The available choices for the version_type input are the following:

  • major
  • minor
  • patch

These are some examples of the changes on the version number depending on the selected input.

$ npm pkg get version
"1.0.0"
$ npm version patch --no-git-tag-version
v1.0.1
$ npm version patch --no-git-tag-version
v1.0.2
$ npm version minor --no-git-tag-version
v1.1.0
$ npm version major --no-git-tag-version
v2.0.0

Tag and create Release

This automatic workflow will:

  • tag the repository with the release version
  • generate a GitHub release
    • The GitHub release will trigger the "Publish packages to Node.js" workflow.

Note

This workflow will be automatically triggered upon the merge of the release PR.

Publish packages to Node.js

Automatic workflow that publishes the packages to the npmjs.org registry.

Note

This workflow will be automatically triggered upon the creation of a GitHub release.

Warning

Although this workflow can be executed manually it hasn't been prepared for it yet.