Skip to content

How to release the Cypress library

Julien ADAMEK edited this page Jul 19, 2023 · 2 revisions

All you need is to trigger this GitHub Actions workflow

By default, the release will happen with patch level but you can specify other levels:

image

Under the hood, the workflow does the following things:

  • Configure git client
  • Do a npm clean installation (npm ci)
  • Create a new version according to the workflow inputs (npm version <patch>) The command updates package.json and packages-lock.json files with the new version and creates a git tag
  • Publish the new version to npmjs
  • Push the commit/tag to the repo

Finally, if you want to use the new release, do not forget to update the package.json file of your project:

  "dependencies": {`
    `"@rancher-ecp-qa/cypress-library": "1.0.4"`
  `}
Clone this wiki locally