Skip to content

Commit

Permalink
Publish workflow: Bump versions automatically (#6607)
Browse files Browse the repository at this point in the history
  • Loading branch information
laske185 committed Jul 11, 2024
2 parents 383f2b9 + 30d957c commit 6448487
Show file tree
Hide file tree
Showing 23 changed files with 1,174 additions and 1,601 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@ on:
type: choice
description: Which NPM tag should be assigned?
options:
- dev
- next
- latest
version: # see https://github.com/lerna/lerna/tree/main/libs/commands/version#semver-bump
type: choice
description: Semver keyword for version bump
options:
- patch
- minor
- major
- prerelease

jobs:
publish:
Expand All @@ -23,7 +32,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
- name: Install Node.js
Expand Down Expand Up @@ -52,6 +60,14 @@ jobs:
- name: Install
run: pnpm i --no-frozen-lockfile --no-verify-store-integrity

- name: Configure Git user
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Bump Versions
run: 'npx lerna version ${{github.event.inputs.version}} --no-private --tag-version-prefix="" -m "chore: release %v" -y'

- name: Build
run: pnpm -r build

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"@types/node": "ts5.4",
"cross-env": "7.0.3",
"husky": "9.0.11",
"lerna": "8.1.5",
"js-yaml": "4.1.0",
"lerna": "8.1.6",
"license-report": "6.5.0",
"lint-staged": "15.2.7",
"npm-check-updates": "16.14.20",
Expand Down Expand Up @@ -37,6 +38,7 @@
"test": "pnpm -r test",
"test-reset-and-update": "rimraf packages/themes/**/snapshots/** && pnpm test-update",
"test-update": "pnpm -r test-update",
"update": "pnpm ncu:patch && pnpm ncu:minor && pnpm ncu:major"
"update": "pnpm ncu:patch && pnpm ncu:minor && pnpm ncu:major",
"version": "node scripts/update-publiccode.mjs && git add publiccode.yml"
}
}
6 changes: 3 additions & 3 deletions packages/adapters/react-standalone/kolibri-rock's.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>

<!-- KoliBri -->
<script crossorigin src="https://unpkg.com/@public-ui/components@2.1.3/dist/kolibri/kolibri.esm.js" type="module"></script>
<script crossorigin src="https://unpkg.com/@public-ui/react-standalone@2.1.3/dist/index.mjs" type="module"></script>
<script crossorigin src="https://unpkg.com/@public-ui/components@latest/dist/kolibri/kolibri.esm.js" type="module"></script>
<script crossorigin src="https://unpkg.com/@public-ui/react-standalone@latest/dist/index.mjs" type="module"></script>

<!-- Babel -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
Expand All @@ -23,7 +23,7 @@
<main id="app"></main>

<script type="module">
import { register } from 'https://unpkg.com/@public-ui/components@2.1.3/dist/esm/index.js';
import { register } from 'https://unpkg.com/@public-ui/components@latest/dist/esm/index.js';
import { DEFAULT } from 'https://unpkg.com/@public-ui/themes/dist/index.mjs';
register(DEFAULT, []).catch(console.warn);
</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/combobox/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Beispiel für die Konstruktion des JSON-Array:
| `_icons` | `_icons` | Defines the icon classnames (e.g. `_icons="fa-solid fa-user"`). | `string \| undefined \| { right?: IconOrIconClass \| undefined; left?: IconOrIconClass \| undefined; }` | `undefined` |
| `_id` | `_id` | Defines the internal ID of the primary component element. | `string \| undefined` | `undefined` |
| `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot. | `string` | `undefined` |
| `_msg` | -- | Defines the properties for a message rendered as Alert component. | `undefined \| {} & { _level?: 0 \| 2 \| 1 \| 4 \| 3 \| 5 \| 6 \| undefined; _on?: KoliBriAlertEventCallbacks \| undefined; _type?: "default" \| "info" \| "success" \| "warning" \| "error" \| undefined; _variant?: "card" \| "msg" \| undefined; _label?: string \| undefined; _alert?: boolean \| undefined; _hasCloser?: boolean \| undefined; } & { _description: string; }` | `undefined` |
| `_msg` | -- | Defines the properties for a message rendered as Alert component. | `undefined \| {} & { _level?: 0 \| 1 \| 2 \| 4 \| 3 \| 5 \| 6 \| undefined; _on?: KoliBriAlertEventCallbacks \| undefined; _type?: "error" \| "warning" \| "info" \| "success" \| "default" \| undefined; _variant?: "card" \| "msg" \| undefined; _label?: string \| undefined; _alert?: boolean \| undefined; _hasCloser?: boolean \| undefined; } & { _description: string; }` | `undefined` |
| `_name` | `_name` | Defines the technical name of an input field. | `string \| undefined` | `undefined` |
| `_on` | -- | Gibt die EventCallback-Funktionen für das Input-Event an. | `InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus & InputTypeOnInput \| undefined` | `undefined` |
| `_placeholder` | `_placeholder` | Defines the placeholder for input field. To be shown when there's no value. | `string \| undefined` | `undefined` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Achten Sie darauf, jeder Checkbox ein Label zuzuweisen, da dieses von Screenread
| `_id` | `_id` | Defines the internal ID of the primary component element. | `string \| undefined` | `undefined` |
| `_indeterminate` | `_indeterminate` | Puts the checkbox in the indeterminate state, does not change the value of \_checked. | `boolean \| undefined` | `undefined` |
| `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot. | `string` | `undefined` |
| `_msg` | -- | Defines the properties for a message rendered as Alert component. | `undefined \| {} & { _level?: 0 \| 2 \| 1 \| 4 \| 3 \| 5 \| 6 \| undefined; _on?: KoliBriAlertEventCallbacks \| undefined; _type?: "default" \| "info" \| "success" \| "warning" \| "error" \| undefined; _variant?: "card" \| "msg" \| undefined; _label?: string \| undefined; _alert?: boolean \| undefined; _hasCloser?: boolean \| undefined; } & { _description: string; }` | `undefined` |
| `_msg` | -- | Defines the properties for a message rendered as Alert component. | `undefined \| {} & { _level?: 0 \| 1 \| 2 \| 4 \| 3 \| 5 \| 6 \| undefined; _on?: KoliBriAlertEventCallbacks \| undefined; _type?: "error" \| "warning" \| "info" \| "success" \| "default" \| undefined; _variant?: "card" \| "msg" \| undefined; _label?: string \| undefined; _alert?: boolean \| undefined; _hasCloser?: boolean \| undefined; } & { _description: string; }` | `undefined` |
| `_name` | `_name` | Defines the technical name of an input field. | `string \| undefined` | `undefined` |
| `_on` | -- | Gibt die EventCallback-Funktionen für das Input-Event an. | `InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus & InputTypeOnInput \| undefined` | `undefined` |
| `_required` | `_required` | Makes the input element required. | `boolean \| undefined` | `false` |
Expand Down
Loading

0 comments on commit 6448487

Please sign in to comment.