Skip to content

Commit

Permalink
Options for the workflow for publishing NPM packages are becoming mor…
Browse files Browse the repository at this point in the history
…e flexible (#7043)
  • Loading branch information
laske185 authored Nov 8, 2024
2 parents da516bc + 248cde5 commit 15ecbe0
Show file tree
Hide file tree
Showing 20 changed files with 34 additions and 23 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,25 @@ on:
- dev
- next
- latest
- lts
version: # see https://github.com/lerna/lerna/tree/main/libs/commands/version#semver-bump
type: choice
description: Semver keyword for version bump
description: SemVer keyword for version bump
options:
- prerelease
- prepatch
- patch
- preminor
- minor
- premajor
- major
- prerelease
label: # see https://github.com/lerna/lerna/tree/main/libs/commands/version#--preid
type: choice
description: SemVer pre release label
options:
- rc
- beta
- alpha

jobs:
publish:
Expand Down Expand Up @@ -84,7 +95,7 @@ jobs:
git config --local user.name "${{ steps.app-token.outputs.app-slug }}[bot]"
- name: Bump Versions
run: 'HUSKY=0 npx lerna version ${{github.event.inputs.version}} --preid=rc --no-private --tag-version-prefix="" -m "chore: release %v" -y --force-publish'
run: 'HUSKY=0 npx lerna version ${{github.event.inputs.version}} --preid=${{github.event.inputs.label}} --no-private --tag-version-prefix="" -m "chore: release %v" -y --force-publish'

- name: Build
run: pnpm -r build
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"packages/tools/visual-tests"
],
"useNx": true,
"version": "2.1.9"
"version": "2.2.0-alpha.0"
}
2 changes: 1 addition & 1 deletion packages/adapters/angular/v15/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/angular-v15",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/angular/v16/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/angular-v16",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/angular/v17/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/angular-v17",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/angular/v18/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/angular-v18",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/hydrate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/hydrate",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/preact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/preact",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/react-standalone/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/react-standalone",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/react",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/solid",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/vue",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/components",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/designer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/designer",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/samples/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/sample-react",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"description": "This app contains samples for the KoliBri/Public UI",
"license": "EUPL-1.2",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/themes/default/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/theme-default",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/themes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/themes",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/kolibri-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/kolibri-cli",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/visual-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@public-ui/visual-tests",
"version": "2.1.9",
"version": "2.2.0-alpha.0",
"license": "EUPL-1.2",
"homepage": "https://public-ui.github.io",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: KoliBri - The accessible HTML-Standard
applicationSuite: Informationstechnikzentrum Bund
url: https://github.com/public-ui/kolibri.git
landingURL: https://github.com/public-ui
releaseDate: '2024-10-29'
softwareVersion: 2.1.9
releaseDate: '2024-11-08'
softwareVersion: 2.2.0-alpha.0
logo: https://avatars.githubusercontent.com/u/109126739
platforms:
- android
Expand Down

0 comments on commit 15ecbe0

Please sign in to comment.