Deployment
Once your widget is fully developed and tested, it's time to release it to production. This guide covers the complete deployment process, from versioning your changes using semantic commits to creating merge requests and understanding how the automated pipeline deploys your widget to the platform.
Table of Contents
Semantic Versioning
Reference:
Commit Types
| Prefix | Release Type | Version Bump | Example |
|---|---|---|---|
feat: | Minor | 1.x.0 | feat: add export feature |
fix: | Patch | 1.0.x | fix: resolve data loading issue |
docs: | Patch | 1.0.x | docs: update README |
style: | Patch | 1.0.x | style: format code |
refactor: | Patch | 1.0.x | refactor: improve performance |
perf: | Patch | 1.0.x | perf: optimize query |
test: | Patch | 1.0.x | test: add unit tests |
chore: | Patch | 1.0.x | chore: update dependencies |
feat!: or BREAKING CHANGE: | Major | x.0.0 | feat!: redesign API |
Breaking Changes
# Option 1: Use ! after type
git commit -m "feat!: redesign KPI API TICKET-123"
# Option 2: Use BREAKING CHANGE in body
git commit -m "feat: redesign KPI API TICKET-123
BREAKING CHANGE: KPI API endpoint changed from /kpi to /metrics/kpi
"
Creating Merge Request
Reference:
Branch Naming Convention
<type>/<project-key>-<ticket-number>-<description>
Examples:
feat/ACME-123-add-export-feature
fix/ACME-456-resolve-loading-issue
docs/ACME-789-update-readme
Create Branch and Commit
# Create feature branch
git checkout -b feat/ACME-123-add-export-feature
# Make changes
# ... edit files ...
# Stage changes
git add -A
# Commit with semantic format
git commit -m "feat: add export feature for KPI data ACME-123"
# Push to remote
git push --set-upstream origin feat/ACME-123-add-export-feature
MR Title Format
<type>: <project-key>-<ticket-number> <description>
Examples:
feat: ACME-123 add export feature
fix: ACME-456 resolve data loading issue
MR Template
## General
Brief description of changes
## Affected features
- Feature 1
- Feature 2
## Testing
- [ ] Unit tests added/updated
- [ ] Manual testing completed
- [ ] Accessibility tested
## Remarks
Any additional notes
## Breaking Changes (if applicable)
Description of breaking changes and migration guide
Create MR via GitLab UI
- Go to GitLab → Merge Requests → New Merge Request
- Select source branch (your feature branch)
- Select target branch (usually
masterormain) - Fill in MR details
- Check "Squash commits" option
- Create Merge Request
Pipeline and Deployment
When MR is merged:
- semantic-release analyzes commits
- Determines version bump (major/minor/patch)
- Updates
package.jsonversion - Creates Git tag
- Generates changelog
- CI/CD pipeline builds widget
- Uploads to the portal via the Micro App Library automatically
GitLab CI Configuration
.gitlab-ci.yml (auto-configured by template):
include:
- project: "gitlab/devops"
file: "/CI/Node_Widgets.yml"
Verify Deployment
After pipeline completes:
- Check the Micro App Library for new version
- Verify widget appears in platform
- Test widget in development environment
- Review Widget Version Control settings
Next Steps
Want to add advanced features? Continue to: Advanced Features →