Skip to content

Commit fe4c6ec

Browse files
Merge release/v3.1.0 into main branch (#1230)
1 parent 6735c18 commit fe4c6ec

File tree

298 files changed

+22175
-16975
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+22175
-16975
lines changed

.eslintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@
116116
{
117117
"files": "**/*.{ts,tsx}",
118118
"rules": {
119-
"react/require-default-props": "off"
119+
"react/require-default-props": "off",
120+
"no-shadow": "off",
121+
"@typescript-eslint/no-shadow": "error",
120122
}
121123
}
122124
],

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "yarn" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/chromatic.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# .github/workflows/chromatic.yml
22

33
# Workflow name
4-
name: 'Chromatic build on main'
4+
name: "Chromatic build on main"
55

66
# Event for the workflow
77
on:
@@ -14,17 +14,24 @@ jobs:
1414
chromatic-deployment:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
18-
with:
19-
fetch-depth: 0 # 👈 Required to retrieve git history
20-
- uses: actions/setup-node@v3
17+
- name: Checkout branch
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
2122
with:
22-
node-version-file: '.node-version'
23-
- run: |
24-
npm config set "@fortawesome:registry" https://npm.fontawesome.com/
25-
npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
26-
- run: yarn
23+
node-version-file: ".node-version"
24+
25+
- name: Setup Yarn
26+
uses: volta-cli/action@v4
27+
28+
- name: Setup env
29+
run: echo "FONTAWESOME_NPM_AUTH_TOKEN=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" > .env
30+
31+
- name: Install dependencies
32+
run: yarn install
33+
2734
- name: Publish to Chromatic
28-
uses: chromaui/action@v1
35+
uses: chromaui/action@latest
2936
with:
3037
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

.github/workflows/create-new-release.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,32 @@ jobs:
77
name: Create new release
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v3
10+
- name: Checkout branch
11+
uses: actions/checkout@v4
12+
13+
- name: Setup Node
14+
uses: actions/setup-node@v4
1215
with:
13-
node-version-file: '.node-version'
14-
- run: |
15-
npm config set "@fortawesome:registry" https://npm.fontawesome.com/
16-
npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
17-
- run: yarn install
16+
node-version-file: ".node-version"
17+
18+
- name: Setup Yarn
19+
uses: volta-cli/action@v4
20+
21+
- name: Setup env
22+
run: echo "FONTAWESOME_NPM_AUTH_TOKEN=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" > .env
23+
24+
- name: Install dependencies
25+
run: yarn install
1826

1927
- name: Initialize mandatory git config
20-
uses: fregante/setup-git-user@v1
28+
uses: fregante/setup-git-user@v2
2129

2230
# Build assets
2331
- run: yarn build
2432
- run: npm pack
2533
- name: Extract Package Version
2634
id: extract_version
27-
uses: Saionaro/extract-package-version@v1.1.1
35+
uses: Saionaro/extract-package-version@v1.2.1
2836

2937
- name: Create Release
3038
id: create_release
Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,48 @@
1-
name: Deploy to github pages
2-
on:
3-
workflow_dispatch:
4-
push:
5-
branches:
6-
- main
7-
8-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9-
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
13-
14-
jobs:
15-
gh-pages-deploy:
16-
name: Deploying to gh-pages
17-
runs-on: ubuntu-latest
18-
steps:
19-
- name: Checkout branch
20-
uses: actions/checkout@v3
21-
22-
- name: Setup node
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version-file: '.node-version'
26-
cache: 'yarn'
27-
28-
- name: Configure npm
29-
run: npm config set "@fortawesome:registry" https://npm.fontawesome.com/ &&
30-
npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
31-
32-
- name: Install dependencies
33-
run: yarn install
34-
35-
- name: Build
36-
run: yarn build-storybook
37-
38-
- name: Upload
39-
uses: actions/upload-pages-artifact@v3
40-
with:
41-
path: 'storybook-static'
42-
43-
- name: Deploy
44-
uses: actions/deploy-pages@v4
45-
with:
46-
token: ${{ github.token }}
1+
name: Deploy to github pages
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
gh-pages-deploy:
16+
name: Deploying to gh-pages
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout branch
20+
uses: actions/checkout@v4
21+
22+
- name: Setup node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version-file: ".node-version"
26+
cache: "yarn"
27+
28+
- name: Setup Yarn
29+
uses: volta-cli/action@v4
30+
31+
- name: Setup env
32+
run: echo "FONTAWESOME_NPM_AUTH_TOKEN=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" > .env
33+
34+
- name: Install dependencies
35+
run: yarn install
36+
37+
- name: Build
38+
run: yarn build-storybook
39+
40+
- name: Upload
41+
uses: actions/upload-pages-artifact@v4
42+
with:
43+
path: "storybook-static"
44+
45+
- name: Deploy
46+
uses: actions/deploy-pages@v4
47+
with:
48+
token: ${{ github.token }}

.github/workflows/lint.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@ jobs:
66
js-lint:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v3
9+
- name: Checkout branch
10+
uses: actions/checkout@v4
11+
12+
- name: Setup Node
13+
uses: actions/setup-node@v4
1114
with:
12-
node-version-file: '.node-version'
13-
- run: |
14-
npm config set "@fortawesome:registry" https://npm.fontawesome.com/
15-
npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
16-
- run: yarn
17-
- run: yarn lint
15+
node-version-file: ".node-version"
16+
17+
- name: Setup Yarn
18+
uses: volta-cli/action@v4
19+
20+
- name: Setup env
21+
run: echo "FONTAWESOME_NPM_AUTH_TOKEN=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" > .env
22+
23+
- name: Install dependencies
24+
run: yarn install
25+
26+
- name: Lint
27+
run: yarn lint

.github/workflows/prepare-hotfix.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,35 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'The version you want to release.'
7+
description: "The version you want to release."
88
required: true
99

1010
jobs:
1111
prepare-hotfix:
1212
name: Prepare hotfix
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- name: Checkout branch
16+
uses: actions/checkout@v4
1617
with:
1718
fetch-depth: 0
18-
- uses: actions/setup-node@v3
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
1922
with:
20-
node-version-file: '.node-version'
23+
node-version-file: ".node-version"
24+
25+
- name: Setup Yarn
26+
uses: volta-cli/action@v4
27+
28+
- name: Setup env
29+
run: echo "FONTAWESOME_NPM_AUTH_TOKEN=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" > .env
2130

2231
- name: Create hotfix branch
2332
run: git checkout -b hotfix/${{ github.event.inputs.version }}
2433

2534
- name: Initialize mandatory git config
26-
uses: fregante/setup-git-user@v1
35+
uses: fregante/setup-git-user@v2
2736

2837
- name: Bump version in package.json
2938
run: yarn version --new-version ${{ github.event.inputs.version }} --no-git-tag-version
@@ -56,4 +65,3 @@ jobs:
5665
head: hotfix/${{ github.event.inputs.version }}
5766
base: develop
5867
title: Merge hotfix/${{ github.event.inputs.version }} into develop branch
59-

.github/workflows/prepare-release.yml

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,56 +4,80 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'The version you want to release.'
7+
description: "Select the version increment"
88
required: true
9+
type: choice
10+
options:
11+
- major
12+
- minor
13+
- patch
14+
- premajor
15+
- preminor
16+
- prepatch
17+
- prerelease
918

1019
jobs:
1120
prepare-release:
1221
name: Prepare release
1322
runs-on: ubuntu-latest
1423
steps:
15-
- uses: actions/checkout@v2
24+
- name: Checkout branch
25+
uses: actions/checkout@v4
1626
with:
1727
fetch-depth: 0
18-
- uses: actions/setup-node@v3
28+
29+
- name: Setup Node
30+
uses: actions/setup-node@v4
1931
with:
20-
node-version-file: '.node-version'
32+
node-version-file: ".node-version"
2133

22-
- name: Create release branch
23-
run: git checkout -b release/${{ github.event.inputs.version }}
34+
- name: Setup Yarn
35+
uses: volta-cli/action@v4
2436

25-
- name: Initialize mandatory git config
26-
uses: fregante/setup-git-user@v1
37+
- name: Setup env
38+
run: echo "FONTAWESOME_NPM_AUTH_TOKEN=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" > .env
2739

2840
- name: Bump version in package.json
29-
run: yarn version --new-version ${{ github.event.inputs.version }} --no-git-tag-version
41+
run: yarn version ${{ github.event.inputs.version }}
42+
43+
- name: Extract version from package.json
44+
id: extract_version
45+
run: |
46+
version=$(grep '"version"' package.json | sed -E 's/.*"version": "([^"]+)".*/\1/')
47+
echo "Extracted version: $version"
48+
echo "::set-output name=version::$version"
49+
50+
- name: Create release branch
51+
run: git checkout -b release/v${{ steps.extract_version.outputs.version }}
52+
53+
- name: Initialize mandatory git config
54+
uses: fregante/setup-git-user@v2
3055

3156
- name: Commit manifest files
3257
id: make-commit
3358
run: |
3459
git add package.json
35-
git commit --message "Prepare release ${{ github.event.inputs.version }}"
60+
git commit --message "Prepare release v${{ steps.extract_version.outputs.version }}"
3661
3762
echo "::set-output name=commit::$(git rev-parse HEAD)"
3863
3964
- name: Publish release branch
40-
run: git push origin release/${{ github.event.inputs.version }}
65+
run: git push origin release/v${{ steps.extract_version.outputs.version }}
4166

4267
- name: Merge release into main branch
4368
uses: thomaseizinger/[email protected]
4469
env:
4570
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4671
with:
47-
head: release/${{ github.event.inputs.version }}
72+
head: release/v${{ steps.extract_version.outputs.version }}
4873
base: main
49-
title: Merge release/${{ github.event.inputs.version }} into main branch
74+
title: "Merge release/v${{ steps.extract_version.outputs.version }} into main branch"
5075

5176
- name: Merge release into develop branch
5277
uses: thomaseizinger/[email protected]
5378
env:
5479
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5580
with:
56-
head: release/${{ github.event.inputs.version }}
81+
head: release/v${{ steps.extract_version.outputs.version }}
5782
base: develop
58-
title: Merge release/${{ github.event.inputs.version }} into develop branch
59-
83+
title: "Merge release/v${{ steps.extract_version.outputs.version }} into develop branch"

0 commit comments

Comments
 (0)