Skip to content

Commit c7b7784

Browse files
authored
Merge branch 'main' into uilit-7
2 parents 95985e9 + b0821e4 commit c7b7784

File tree

3 files changed

+63
-12
lines changed

3 files changed

+63
-12
lines changed

.github/workflows/release-beta.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Build and publish -beta tag for @gravity-ui/dynamic-forms
2+
# Runs manually in Actions tabs in github
3+
# Runs on any branch except main
4+
5+
name: Release beta version
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
version:
11+
type: string
12+
required: false
13+
description: 'If your build failed and the version is already exists you can set version of package manually, e.g. 5.0.0-beta.0. Use the prefix `beta` otherwise you will get error.'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- run: |
20+
if [ "${{ github.event.inputs.version }}" != "" ]; then
21+
if [[ "${{ github.event.inputs.version }}" != *"beta"* ]]; then
22+
echo "version set incorrectly! Check that is contains beta in it's name"
23+
exit 1
24+
fi
25+
fi
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 18
30+
registry-url: 'https://registry.npmjs.org'
31+
- name: Install Packages
32+
run: npm ci
33+
- name: Lint Files
34+
run: npm run lint
35+
- name: Typecheck
36+
run: npm run typecheck
37+
- name: Test
38+
run: npm test
39+
- name: Bump version
40+
run: |
41+
echo ${{ github.event.inputs.version }}
42+
43+
if [ "${{ github.event.inputs.version }}" == "" ]; then
44+
npm version prerelease --preid=beta --git-tag-version=false
45+
else
46+
npm version ${{ github.event.inputs.version }} --git-tag-version=false
47+
fi
48+
- name: Publish version
49+
run: npm publish --tag beta --access public
50+
env:
51+
NODE_AUTH_TOKEN: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
52+
shell: bash

.storybook/main.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
44

55
const config: StorybookConfig = {
66
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
7-
addons: ['@storybook/addon-essentials', '@storybook/preset-scss', '@storybook/addon-docs'],
7+
addons: [
8+
{
9+
name: '@storybook/addon-essentials',
10+
options: {
11+
controls: false,
12+
actions: false,
13+
},
14+
},
15+
'@storybook/preset-scss',
16+
],
817
framework: {
918
name: '@storybook/react-webpack5',
1019
options: {fastRefresh: true},

.storybook/preview.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@ import {withTheme, withLang} from './decorators';
22

33
export const decorators = [withTheme, withLang];
44

5-
export const parameters = {
6-
actions: {argTypesRegex: '^on[A-Z].*'},
7-
controls: {
8-
matchers: {
9-
color: /(background|color)$/i,
10-
date: /Date$/,
11-
},
12-
},
13-
};
14-
155
export const globalTypes = {
166
theme: {
177
defaultValue: 'light',
@@ -37,4 +27,4 @@ export const globalTypes = {
3727
],
3828
},
3929
},
40-
}
30+
};

0 commit comments

Comments
 (0)