Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .changeset/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/config.json

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ jobs:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'

- name: Restore dependencies and turbo cache
uses: actions/cache@v4
- name: Restore lerna
uses: actions/cache@v3
with:
path: |
node_modules
*/*/node_modules
.turbo
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Update npm registry
Expand Down
36 changes: 11 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@v2
with:
fetch-depth: '0'

- uses: actions/setup-node@v4
- uses: actions/setup-node@v2
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
Expand All @@ -40,51 +40,37 @@ jobs:
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
git pull

- name: Install Lerna globally
run: npm install lerna --global

- name: Update npm registry
run: npm run update:registry

- name: Install dependencies
run: npm ci

# Fixed versioning: one changeset entry propagates the chosen bump level
# to the whole @baloise/web-app-* group. This preserves the manual
# one-button patch/minor/major release UX previously handled by lerna.
- name: Create release changeset
run: |
mkdir -p .changeset
cat > .changeset/manual-release.md <<EOF
---
"@baloise/web-app-utils": ${{ github.event.inputs.version }}
---

Manual ${{ github.event.inputs.version }} release.
EOF

- name: Version packages
run: npx changeset version

- name: Build
run: npm run build

- name: Documentation
run: npm run docs

- uses: EndBug/add-and-commit@v9
- uses: EndBug/add-and-commit@v5
with:
message: 'chore(release): version packages and update build artifacts'
message: 'chore(): update build artifacts'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to NPM
run: npx changeset publish
run: 'lerna publish ${{ github.event.inputs.version }} --yes'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update Lock files
run: npm run update:lock
run: 'npm run update:lock'

- uses: EndBug/add-and-commit@v9
- uses: EndBug/add-and-commit@v5
with:
message: 'chore(): update lock files'
env:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ typings/
# Optional eslint cache
.eslintcache

# Turborepo
.turbo

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
Expand Down
29 changes: 12 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,13 @@ A collection of utilities for Baloise web applications.

## Packages

| Library | Status | Description |
| ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [@baloise/web-app-utils](https://github.com/baloise/web-app-utils/blob/master/packages/utils/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-utils) | A collection of JavaScript utilities like simple functions, models and integration logic. |
| [@baloise/web-app-pipes](https://github.com/baloise/web-app-utils/blob/master/packages/pipes/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-pipes) | A collection of pipe function to transform raw values in a certain format. |
| [@baloise/web-app-pipes-angular](https://github.com/baloise/web-app-utils/blob/master/packages/pipes-angular/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-pipes-angular) | Proxy package for angular applications. |
| [@baloise/web-app-pipes-vue](https://github.com/baloise/web-app-utils/blob/master/packages/pipes-vue/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-pipes-vue) | Proxy package for vue applications. |
| [@baloise/web-app-validators](https://github.com/baloise/web-app-utils/blob/master/packages/validators/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-validators) | A collection of validator functions. |
| [@baloise/web-app-validators-angular](https://github.com/baloise/web-app-utils/blob/master/packages/validators-angular/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-validators-angular) | Proxy package for angular applications. |
| [@baloise/web-app-validators-vue](https://github.com/baloise/web-app-utils/blob/master/packages/validators-vue/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-validators-vue) | Proxy package for vue applications. |
| [@baloise/web-app-unsupported-browsers](https://github.com/baloise/web-app-utils/blob/master/packages/unsupported-browsers/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-unsupported-browsers) | This script verifies if the users browser is supported by the Baloise applications and if not it redirects directly to the static unsupported-browsers pages. |
| [@baloise/web-app-clean-architecture](https://github.com/baloise/web-app-utils/blob/master/packages/clean-architecture/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-clean-architecture) | Utils for clean architecture |
| [@baloise/web-app-form-vue](https://github.com/baloise/web-app-utils/blob/master/packages/form-vue/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-form-vue) | Components and utils for Vue form creation. |
| Library | Status | Description |
| -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------- |
| [@baloise/web-app-utils](https://github.com/baloise/web-app-utils/blob/master/packages/utils/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-utils) | A collection of JavaScript utilities like simple functions, models and integration logic. |
| [@baloise/web-app-pipes](https://github.com/baloise/web-app-utils/blob/master/packages/pipes/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-pipes) | A collection of pipe function to transform raw values in a certain format. |
| [@baloise/web-app-pipes-angular](https://github.com/baloise/web-app-utils/blob/master/packages/pipes-angular/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-pipes-angular) | Proxy package for angular applications. |
| [@baloise/web-app-validators](https://github.com/baloise/web-app-utils/blob/master/packages/validators/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-validators) | A collection of validator functions. |
| [@baloise/web-app-validators-angular](https://github.com/baloise/web-app-utils/blob/master/packages/validators-angular/README.md) | ![npm](https://img.shields.io/npm/v/@baloise/web-app-validators-angular) | Proxy package for angular applications. |

## Contribution

Expand Down Expand Up @@ -253,8 +248,8 @@ We are following the [Karam Git Message guideliness](http://karma-runner.github.

Here are some examples of the release type that will be done based on a commit messages:

| Commit message | Release type |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |
| `fix(pencil): stop graphite breaking when too much pressure applied` | Patch Release |
| `feat(pencil): add 'graphiteWidth' option` | ~~Minor~~ Feature Release |
| `perf(pencil): remove graphiteWidth option`<br><br>`BREAKING CHANGE: The graphiteWidth option has been removed.`<br>`The default graphite width of 10mm is always used for performance reasons.` | ~~Major~~ Breaking Release |
| Commit message | Release type |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
| `fix(pencil): stop graphite breaking when too much pressure applied` | Patch Release |
| `feat(pencil): add 'graphiteWidth' option` | ~~Minor~~ Feature Release |
| `perf(pencil): remove graphiteWidth optionBREAKING CHANGE: The graphiteWidth option has been removed.``The default graphite width of 10mm is always used for performance reasons.` | ~~Major~~ Breaking Release |
Loading
Loading