Skip to content
Merged
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: 17 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

## This repo uses **fixed** versioning

All `@baloise/web-app-*` packages are declared in the `fixed` group in `config.json`, so a
changeset that bumps one package bumps them all to the same version (matching the previous
Lerna behavior). For normal releases you do **not** need to author changeset files by hand —
the release is triggered manually via the `Release` GitHub Actions workflow, which synthesizes
a changeset for the chosen bump level. Author a changeset manually (`npm run changeset`) only if
you want a custom changelog entry.
24 changes: 24 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [
[
"@baloise/web-app-utils",
"@baloise/web-app-pipes",
"@baloise/web-app-pipes-vue",
"@baloise/web-app-pipes-angular",
"@baloise/web-app-validators",
"@baloise/web-app-validators-vue",
"@baloise/web-app-validators-angular",
"@baloise/web-app-form-vue",
"@baloise/web-app-clean-architecture",
"@baloise/web-app-unsupported-browsers"
]
],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 3 additions & 2 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'

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

- name: Update npm registry
Expand Down
36 changes: 25 additions & 11 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@v2
uses: actions/checkout@v4
with:
fetch-depth: '0'

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
Expand All @@ -40,37 +40,51 @@ 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@v5
- uses: EndBug/add-and-commit@v9
with:
message: 'chore(): update build artifacts'
message: 'chore(release): version packages and update build artifacts'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

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

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

# Turborepo
.turbo

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
Expand Down
Loading
Loading