Skip to content

Commit

Permalink
Merge pull request #155 from eccenca/release/v23.6.0
Browse files Browse the repository at this point in the history
Release v23.6.0 into main branch
  • Loading branch information
haschek authored Apr 17, 2024
2 parents e39824a + dfc4873 commit 3821770
Show file tree
Hide file tree
Showing 301 changed files with 8,570 additions and 8,932 deletions.
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ trim_trailing_whitespace = false
[{Makefile,**.mk}]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab
[*.scss]
indent_size = 4
indent_style = space
[*.yml]
indent_size = 2

2 changes: 1 addition & 1 deletion .github/workflows/deployment-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: "16"
- name: Install dependencies
run: yarn install
- name: Create jest results
Expand Down
84 changes: 42 additions & 42 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,54 @@ on:
- "feature/prepareReleaseForDM-CMEM-4151" # TODO: only for testing, remove it later
inputs:
releasetype:
description: 'Type of release'
description: "Type of release"
required: true
type: choice
options:
- patch
- minor
- major
- patch
- minor
- major

jobs:
create-release-branch:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Update package.json with new release candidate version
id: create-version
run: |
yarn version --no-git-tag-version --preid "rc" --pre${{ github.event.inputs.releasetype }}
echo "version=$(node -p -e "require('./package.json').version.split('-').shift()")" >> $GITHUB_OUTPUT
- name: Create release branch
id: create-branch
run: |
git checkout -b release/v${{ steps.create-version.outputs.version }}
echo "label=release/v${{ steps.create-version.outputs.version }}" >> $GITHUB_OUTPUT
- name: Initialize mandatory git config
# @see https://github.community/t/how-do-i-get-gh-username-based-on-actions-events/17882
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Commit version number update
id: make-commit
run: |
git commit package.json --message "Prepare release v${{ steps.create-version.outputs.version }}"
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Push release branch
run: git push origin ${{ steps.create-branch.outputs.label }}
- name: Create pull request into main
uses: thomaseizinger/create-pull-request@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
head: ${{ steps.create-branch.outputs.label }}
base: main
title: Release v${{ steps.create-version.outputs.version }} into main branch
draft: true
reviewers: ${{ github.actor }}
body: |
Created by Github workflow to create release branches.
Merge this PR will trigger a tag creation and package release.
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Update package.json with new release candidate version
id: create-version
run: |
yarn version --no-git-tag-version --preid "rc" --pre${{ github.event.inputs.releasetype }}
echo "version=$(node -p -e "require('./package.json').version.split('-').shift()")" >> $GITHUB_OUTPUT
- name: Create release branch
id: create-branch
run: |
git checkout -b release/v${{ steps.create-version.outputs.version }}
echo "label=release/v${{ steps.create-version.outputs.version }}" >> $GITHUB_OUTPUT
- name: Initialize mandatory git config
# @see https://github.community/t/how-do-i-get-gh-username-based-on-actions-events/17882
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Commit version number update
id: make-commit
run: |
git commit package.json --message "Prepare release v${{ steps.create-version.outputs.version }}"
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Push release branch
run: git push origin ${{ steps.create-branch.outputs.label }}
- name: Create pull request into main
uses: thomaseizinger/create-pull-request@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
head: ${{ steps.create-branch.outputs.label }}
base: main
title: Release v${{ steps.create-version.outputs.version }} into main branch
draft: true
reviewers: ${{ github.actor }}
body: |
Created by Github workflow to create release branches.
Merge this PR will trigger a tag creation and package release.
75 changes: 37 additions & 38 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,55 @@ on:
- "release/*" # only documentation, it is not tested on workflow_dispatch
inputs:
confirmation:
description: 'Create release tag and publish package'
description: "Create release tag and publish package"
required: true
default: false
type: boolean

jobs:
create-release-candidate:

runs-on: ubuntu-latest
outputs:
ref: v${{ steps.package-version.outputs.version }}
sha: ${{ steps.tag-revision.outputs.sha }}

steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v8
- name: Allow only for release branch
run: |
if [[ ${{ steps.branch-name.outputs.current_branch }} != release* ]] ;
then
echo "Only allowed to get triggered on release branches!"
echo "You started it on '${{ steps.branch-name.outputs.current_branch }}'."
exit 1
fi
- uses: actions/checkout@v3
- name: Initialize mandatory git config
# @see https://github.community/t/how-do-i-get-gh-username-based-on-actions-events/17882
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Get version
id: package-version
run: echo "version=$(node -p -e "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Create version tag
id: tag-revision
run: |
git tag -a v${{ steps.package-version.outputs.version }} -m "tag release candidate v${{ steps.package-version.outputs.version }}"
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Bump release candidate version in package.json
run: |
yarn version --no-git-tag-version --preid "rc" --prerelease
git commit package.json --message "Bump release version to next release candidate $(node -p -e "require('./package.json').version")"
- name: Push tag and changes
run: |
git push
git push origin v${{ steps.package-version.outputs.version }}
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v8
- name: Allow only for release branch
run: |
if [[ ${{ steps.branch-name.outputs.current_branch }} != release* ]] ;
then
echo "Only allowed to get triggered on release branches!"
echo "You started it on '${{ steps.branch-name.outputs.current_branch }}'."
exit 1
fi
- uses: actions/checkout@v3
- name: Initialize mandatory git config
# @see https://github.community/t/how-do-i-get-gh-username-based-on-actions-events/17882
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Get version
id: package-version
run: echo "version=$(node -p -e "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Create version tag
id: tag-revision
run: |
git tag -a v${{ steps.package-version.outputs.version }} -m "tag release candidate v${{ steps.package-version.outputs.version }}"
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Bump release candidate version in package.json
run: |
yarn version --no-git-tag-version --preid "rc" --prerelease
git commit package.json --message "Bump release version to next release candidate $(node -p -e "require('./package.json').version")"
- name: Push tag and changes
run: |
git push
git push origin v${{ steps.package-version.outputs.version }}
publish-package:
needs: create-release-candidate
uses: ./.github/workflows/release-publish.yml
Expand Down
77 changes: 38 additions & 39 deletions .github/workflows/release-final.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,55 @@ on:

jobs:
create-release-version:

runs-on: ubuntu-latest
outputs:
version: ${{ steps.package-version.outputs.version }}
sha: ${{ steps.tag-revision.outputs.sha }}

steps:
- uses: actions/checkout@v3
- name: Initialize mandatory git config
# @see https://github.community/t/how-do-i-get-gh-username-based-on-actions-events/17882
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Get version
id: package-version
run: echo "version=$(node -p -e "require('./package.json').version.split('-').shift()")" >> $GITHUB_OUTPUT
- name: Update version in repository
run: |
yarn version --no-git-tag-version --new-version ${{ steps.package-version.outputs.version }}
sed -i "s/## \[Unreleased\]/## \[Unreleased\]\n\n## [${{ steps.package-version.outputs.version }}] - $(date -I)/g" ./CHANGELOG.md
git commit package.json CHANGELOG.md --message "Set package version to ${{ steps.package-version.outputs.version }}"
- name: Create version tag
id: tag-revision
run: |
git tag -a v${{ steps.package-version.outputs.version }} -m "tag final release v${{ steps.package-version.outputs.version }}"
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Push tag and changes
run: |
git push
git push origin v${{ steps.package-version.outputs.version }}
- uses: actions/checkout@v3
- name: Initialize mandatory git config
# @see https://github.community/t/how-do-i-get-gh-username-based-on-actions-events/17882
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Get version
id: package-version
run: echo "version=$(node -p -e "require('./package.json').version.split('-').shift()")" >> $GITHUB_OUTPUT
- name: Update version in repository
run: |
yarn version --no-git-tag-version --new-version ${{ steps.package-version.outputs.version }}
sed -i "s/## \[Unreleased\]/## \[Unreleased\]\n\n## [${{ steps.package-version.outputs.version }}] - $(date -I)/g" ./CHANGELOG.md
git commit package.json CHANGELOG.md --message "Set package version to ${{ steps.package-version.outputs.version }}"
- name: Create version tag
id: tag-revision
run: |
git tag -a v${{ steps.package-version.outputs.version }} -m "tag final release v${{ steps.package-version.outputs.version }}"
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Push tag and changes
run: |
git push
git push origin v${{ steps.package-version.outputs.version }}
push-to-develop:
runs-on: ubuntu-latest
needs: create-release-version
steps:
- uses: actions/checkout@v3
with:
ref: develop
- name: Initialize mandatory git config
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Push released version back into develop
run: |
git fetch --tags
git merge --no-ff --no-edit v${{ needs.create-release-version.outputs.version }}
git push
- uses: actions/checkout@v3
with:
ref: develop
- name: Initialize mandatory git config
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Push released version back into develop
run: |
git fetch --tags
git merge --no-ff --no-edit v${{ needs.create-release-version.outputs.version }}
git push
publish-package:
needs: create-release-version
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
ref: ${{ inputs.ref }}
- uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
node-version: "16"
registry-url: "https://registry.npmjs.org"
- name: Set name vars
id: info-vars
run: |
Expand All @@ -52,8 +52,8 @@ jobs:
- name: Create jest results
run: yarn test:generate-output
- name: Publish to Chromatic
# publish storybook only for final releases because of chromaui/action bug
# @see https://github.com/chromaui/chromatic-cli/issues/551
# publish storybook only for final releases because of chromaui/action bug
# @see https://github.com/chromaui/chromatic-cli/issues/551
if: inputs.sectionChangelog != 'Unreleased'
id: chromatic-upload
uses: chromaui/action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Test using Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: "16"
- run: yarn install
- run: yarn compile
- run: yarn compile-scss
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
uses: deepakputhraya/action-branch-name@master
with:
regex: '([a-z])+\/([a-z]).([aA-zZ\.\-\d])+'
allowed_prefixes: 'feature,release,fix,bugfix,hotfix,change,temp'
ignore: 'main,develop'
allowed_prefixes: "feature,release,fix,bugfix,hotfix,change,temp"
ignore: "main,develop"
min_length: 10
max_length: 100
test-documentation:
Expand All @@ -30,6 +30,6 @@ jobs:
uses: andstor/file-existence-action@v2
with:
files: "package.json, LICENSE, README.md, CHANGELOG.md"
- name: "Test for \"## [Unreleased]\" section in changelog"
- name: 'Test for "## [Unreleased]" section in changelog'
if: steps.check_files.outputs.files_exists == 'true'
run: grep "## \[Unreleased\]" CHANGELOG.md
Loading

0 comments on commit 3821770

Please sign in to comment.