Skip to content

Commit 95955ab

Browse files
authored
feat: update to storybook 7, webpack 5, node 18 (#457)
* feat: update to storybook 7, webpack 5, node 18
1 parent 32a68f2 commit 95955ab

File tree

103 files changed

+24837
-24399
lines changed

Some content is hidden

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

103 files changed

+24837
-24399
lines changed

.babelrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"sourceType": "unambiguous",
3+
"presets": [
4+
[
5+
"@babel/preset-env",
6+
{
7+
"targets": {
8+
"chrome": 100
9+
}
10+
}
11+
],
12+
"@babel/preset-typescript",
13+
"@babel/preset-react"
14+
],
15+
"plugins": []
16+
}

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Setup Node
1919
uses: actions/setup-node@v2
2020
with:
21-
node-version: '14.x'
22-
cache: 'npm'
21+
node-version: 18
22+
cache: npm
2323
- name: Install Packages
2424
run: npm ci
2525
- name: Lint Files
@@ -38,8 +38,8 @@ jobs:
3838
- name: Setup Node
3939
uses: actions/setup-node@v2
4040
with:
41-
node-version: '14.x'
42-
cache: 'npm'
41+
node-version: 18
42+
cache: npm
4343
- name: Install Packages
4444
run: npm ci
4545
- name: Unit Tests

.github/workflows/main-preview.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ jobs:
1616
- name: Setup Node
1717
uses: actions/setup-node@v2
1818
with:
19-
node-version: 14
19+
node-version: 18
2020
- name: Install Packages
2121
run: npm ci
2222
shell: bash
2323
- name: Build Storybook
2424
run: npx build-storybook
2525
shell: bash
26-
env:
27-
TS_NODE_PROJECT: .storybook/tsconfig.json
2826
- name: Upload to S3
2927
uses: gravity-ui/preview-upload-to-s3-action@v1
3028
with:

.github/workflows/pr-preview-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: gravity-ui/preview-build-action@v1
12-
env:
13-
TS_NODE_PROJECT: .storybook/tsconfig.json
12+
with:
13+
node-version: 18

.github/workflows/release-1.x.x.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
with:
1313
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
1414
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
15-
node-version: 14
15+
node-version: 18
1616
npm-dist-tag: untagged
1717
default-branch: version-1.x.x/fixes

.github/workflows/release-2.x.x.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
with:
1313
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
1414
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
15-
node-version: 14
15+
node-version: 18
1616
npm-dist-tag: untagged
1717
default-branch: version-2.x.x

.github/workflows/release-alpha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v2
2323
- uses: actions/setup-node@v1
2424
with:
25-
node-version: 14
25+
node-version: 18
2626
registry-url: 'https://registry.npmjs.org'
2727
- run: npm ci
2828
shell: bash

.github/workflows/release-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
with:
1313
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
1414
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
15-
node-version: 14
15+
node-version: 18
1616
npm-dist-tag: beta
1717
prerelease: true
1818
default-branch: beta

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
with:
1313
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
1414
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
15-
node-version: 14
15+
node-version: 18

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
registry=https://registry.npmjs.org
1+
registry=https://registry.npmjs.org
2+
legacy-peer-deps=true

0 commit comments

Comments
 (0)