Skip to content

Automate GitHub release creation on package publish #533

@lukasmatta

Description

@lukasmatta

Summary

When a new version of cps-ui-kit is published to NPM, a corresponding GitHub release is not created automatically. It must be created manually, which is error-prone, easy to forget, and inconsistent with the automated publish pipeline.

Current Behavior

cps-ui-kit-publish.yml automatically:

  1. Bumps the version in projects/cps-ui-kit/package.json
  2. Commits and pushes the bump to master
  3. Builds and publishes the package to the NPM registry

A GitHub release is not created at any point in this process.

Proposed Change

Add a new job (e.g. create-release) to cps-ui-kit-publish.yml that runs after publish succeeds and creates a GitHub release using the bumped version tag. Note we should not necessarily publish a new version after each commit to the master.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions