This guide takes you step by step to a release of the Terra Components.
Important: This guide only applies to plentysystems employees.
- Run
npm run prepare-release
in your IDE's console.- The command runs the alias:
npm ci && npm run build && npm run test-headless && npm start
- The command runs the alias:
- The command tests and builds code.
If this command fails (for example due to a unit test), errors should be corrected.
-
We use Semver's Versioning.
-
Run
gulp changeVersion --increment <increment> --preid <preid>
in your IDE's console. -
increment
: depends on the changes that have been made - either 'major', 'minor' or 'patch', or any pre-release.- example:
gulp changeVersion --increment minor
- before: v6.0.0 ... after: v6.1.0
- example:
-
preid
: is only necessary for a pre-release and sets a subversion.- example:
gulp changeVersion --increment preminor --preid rc
- before: v6.0.0 ... after: v6.1.0-rc.0
- example:
-
All parameters can be found in the gulpfile (line 129).
-
Update the date in the Changelog on which you want it to be released.
- example:
# 6.1.0-rc.0 (04.03.2021)
- example:
-
Push your changes directly to the branch that you would like to release.
- For pushing directly to a default branch you need admin rights.
- If you don't have admin rights, create a new pull request and merge it with your changes: (version update + changelog).
- For pushing directly to a default branch you need admin rights.
-
Run
npm publish dist
in your IDE's console. -
This command creates a new release on npm.
-
Important: To run this command you need an account on npm.
- If you haven't got an account yet:
- Create an account.
- Get an invite from a member of Terra.
- Log in to npm in your IDE’s console:
npm login
.
- If you haven't got an account yet:
-
Please create a new release tag on Github.
You're done! 🥳