Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Upgrade sandbox packages action #226

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/upgrade-sandbox-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Upgrade sandbox packages

on:
workflow_dispatch:
schedule:
- cron: 0 12 * * 1

jobs:
upgrade:
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Upgrade sandbox packages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm i @gravity-ui/uikit@latest @gravity-ui/components@latest @gravity-ui/date-components@latest @gravity-ui/icons
git config user.email ""
git config user.name "Upgrade sandbox packages action"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to shape message according to commitlint rules?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message changed to chore(sandbox): upgrade sandbox packages

git checkout -b upgrade-sandbox-packages
git add package.json package-lock.json
export COMMIT_MESSAGE="Upgrade sandbox packages"
git commit -m "$COMMIT_MESSAGE"
git push --set-upstream origin upgrade-sandbox-packages --force
korvin89 marked this conversation as resolved.
Show resolved Hide resolved
gh pr create --title "$COMMIT_MESSAGE" --body "" -a "imsitnikov" -a "amje" -a "korvin89" || gh pr edit --title "$COMMIT_MESSAGE" --body ""
66 changes: 55 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"@diplodoc/transform": "^4.11.0",
"@gravity-ui/components": "^3.0.0",
"@gravity-ui/date-components": "^2.0.1",
"@gravity-ui/icons": "^2.8.1",
"@gravity-ui/icons": "^2.10.0",
"@gravity-ui/page-constructor": "^5.2.0",
"@gravity-ui/uikit": "^6.17.0",
"@gravity-ui/uikit": "^6.20.0",
"@mdx-js/mdx": "^2.3.0",
"@mdx-js/react": "^2.3.0",
"@octokit/rest": "^20.1.1",
Expand All @@ -20,6 +20,8 @@
"husky": "^8.0.3",
"i18next": "^23.8.3",
"javascript-time-ago": "^2.5.9",
"landing-icons": "npm:@gravity-ui/icons@^2.8.1",
"landing-uikit": "npm:@gravity-ui/uikit@^6.17.0",
"lint-staged": "^14.0.1",
"lodash": "^4.17.21",
"micromatch": "^4.0.7",
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/Contributors/Contributors.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Animatable, AnimateBlock, HTML} from '@gravity-ui/page-constructor';
import {Button} from '@gravity-ui/uikit';
import {Button} from 'landing-uikit';
import React from 'react';

import {ExpandableContributorList} from '../../components/ExpandableContributorList';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {HTML, Image, ThemedImage, useTheme} from '@gravity-ui/page-constructor';
import {Icon} from '@gravity-ui/uikit';
import {Icon} from 'landing-uikit';
import Link from 'next/link';
import React from 'react';

Expand Down Expand Up @@ -52,7 +52,7 @@
}
}

const Tag = id ? (Link as any) : 'div';

Check warning on line 55 in src/blocks/CustomExtendedFeatures/components/FeatureItem/FeatureItem.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Unexpected any. Specify a different type
const tagProps = id ? {href: `/libraries/${id}`} : {};

return (
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/CustomHeader/CustomHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Animatable, AnimateBlock, Col, Grid, HTML, Row} from '@gravity-ui/page-constructor';
import {Button, ButtonProps, Icon} from '@gravity-ui/uikit';
import {SVGIconData} from '@gravity-ui/uikit/build/esm/components/Icon/types';
import {Button, ButtonProps, Icon} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React from 'react';
import ReactTimeAgo from 'react-time-ago';
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/Examples/Examples.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Animatable, AnimateBlock, HTML} from '@gravity-ui/page-constructor';
import {Button, Icon, RadioButton, Select, SelectOption, Theme} from '@gravity-ui/uikit';
import {Button, Icon, RadioButton, Select, SelectOption, Theme} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/blocks/Examples/components/Showcase/Showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
Theme,
ThemeProvider,
withTableSelection,
} from '@gravity-ui/uikit';
} from 'landing-uikit';
import React from 'react';

import avatar1Asset from '../../../../assets/avatar-1.png';
Expand Down
4 changes: 2 additions & 2 deletions src/blocks/GithubStarsBlock/GithubStarsBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ChevronRight} from '@gravity-ui/icons';
import {Animatable, HTML} from '@gravity-ui/page-constructor';
import {Icon, Text} from '@gravity-ui/uikit';
import {ChevronRight} from 'landing-icons';
import {Icon, Text} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import {useRouter} from 'next/router';
import React, {useEffect, useState} from 'react';
Expand Down
4 changes: 2 additions & 2 deletions src/components/ArticleNavigation/ArticleNavigation.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ArrowLeft, ArrowRight} from '@gravity-ui/icons';
import {Flex, Icon, Text} from '@gravity-ui/uikit';
import {ArrowLeft, ArrowRight} from 'landing-icons';
import {Flex, Icon, Text} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React from 'react';
import {CONTENT_WRAPPER_ID} from 'src/constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Avatar, AvatarSize, Link} from '@gravity-ui/uikit';
import {Avatar, AvatarSize, Link} from 'landing-uikit';
import React from 'react';

import {Contributor, block} from '../../utils';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ClipboardArea/ClipboardArea.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CopyToClipboard, CopyToClipboardStatus, Popover} from '@gravity-ui/uikit';
import {CopyToClipboard, CopyToClipboardStatus, Popover} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React from 'react';

Expand Down
4 changes: 2 additions & 2 deletions src/components/ClipboardIcon/ClipboardIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Copy, CopyCheck} from '@gravity-ui/icons';
import {type CopyToClipboardStatus, Icon} from '@gravity-ui/uikit';
import {Copy, CopyCheck} from 'landing-icons';
import {type CopyToClipboardStatus, Icon} from 'landing-uikit';
import React from 'react';

import {block} from '../../utils';
Expand Down
4 changes: 2 additions & 2 deletions src/components/ColorPickerInput/ColorPickerInput.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Palette} from '@gravity-ui/icons';
import {Button, Flex, Icon, TextInput, TextInputProps} from '@gravity-ui/uikit';
import {Palette} from 'landing-icons';
import {Button, Flex, Icon, TextInput, TextInputProps} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React, {ChangeEventHandler, useCallback, useRef, useState} from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Component/Component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Button, Icon, Tabs} from '@gravity-ui/uikit';
import {Button, Icon, Tabs} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import {useRouter} from 'next/router';
import React from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ComponentsLibrary/ComponentsLibrary.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Col, Grid, Row} from '@gravity-ui/page-constructor';
import {Icon} from '@gravity-ui/uikit';
import {Icon} from 'landing-uikit';
import {useRouter} from 'next/router';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/components/ContributorList/ContributorList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Button} from '@gravity-ui/uikit';
import {Button} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Button} from '@gravity-ui/uikit';
import {Button} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React, {useState} from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Col, Grid, Row} from '@gravity-ui/page-constructor';
import {Icon} from '@gravity-ui/uikit';
import {Icon} from 'landing-uikit';
import React from 'react';

import linkArrowIcon from '../../assets/icons/link-arrow.svg';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Avatar, Link} from '@gravity-ui/uikit';
import {Avatar, Link} from 'landing-uikit';
import {useTranslation} from 'next-i18next';

import {Contributor, block} from '../../utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Button, Icon} from '@gravity-ui/uikit';
import {Button, Icon} from 'landing-uikit';
import React from 'react';

import {block} from '../../../../utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Icon} from '@gravity-ui/uikit';
import {Icon} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/IconDialog/IconDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Dialog, Sheet} from '@gravity-ui/uikit';
import {Dialog, Sheet} from 'landing-uikit';
import React from 'react';

import {useIsMobile} from '../../../hooks/useIsMobile';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ArrowDownToLine, ArrowShapeTurnUpRight, Check, Link} from '@gravity-ui/icons';
import {Button, CopyToClipboard, Icon} from '@gravity-ui/uikit';
import {ArrowDownToLine, ArrowShapeTurnUpRight, Check, Link} from 'landing-icons';
import {Button, CopyToClipboard, Icon} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React from 'react';

Expand Down
4 changes: 2 additions & 2 deletions src/components/Icons/Icons.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ArrowUpRightFromSquare, Magnifier} from '@gravity-ui/icons';
import {Col, Grid, Row} from '@gravity-ui/page-constructor';
import {Button, Icon, TextInput} from '@gravity-ui/uikit';
import {ArrowUpRightFromSquare, Magnifier} from 'landing-icons';
import {Button, Icon, TextInput} from 'landing-uikit';
import {useTranslation} from 'next-i18next';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {IconProps} from '@gravity-ui/uikit';
import type {IconProps} from 'landing-uikit';

export type IconMeta = {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Interactive/Interactive.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Theme} from '@gravity-ui/uikit';
import {Theme} from 'landing-uikit';
import React from 'react';
import 'swiper/css';
import {Autoplay, EffectCreative} from 'swiper/modules';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Theme} from '@gravity-ui/uikit';
import {Theme} from 'landing-uikit';
import React from 'react';

import {ColorTheme} from '../constants';
Expand Down
4 changes: 2 additions & 2 deletions src/components/Interactive/Settings/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {HandPointUp, Moon, Sun} from '@gravity-ui/icons';
import {Icon} from '@gravity-ui/uikit';
import {HandPointUp, Moon, Sun} from 'landing-icons';
import {Icon} from 'landing-uikit';
import React from 'react';

import {block} from '../../../utils';
Expand Down Expand Up @@ -138,7 +138,7 @@

tickRef.current = setInterval(tick, 1000);

return () => {

Check warning on line 141 in src/components/Interactive/Settings/Settings.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Arrow function expected no return value
document.body.removeEventListener('click', handleDocumentClick);
clearInterval(tickRef.current);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Alert, AlertProps, Button} from '@gravity-ui/uikit';
import {Alert, AlertProps, Button} from 'landing-uikit';
import React from 'react';

import {InteractiveCard} from '../InteractiveCard';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Breadcrumbs, Flex} from '@gravity-ui/uikit';
import {Breadcrumbs, Flex} from 'landing-uikit';
import React from 'react';

import {InteractiveCard} from '../InteractiveCard';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Button, Col, Flex, Row} from '@gravity-ui/uikit';
import {Button, Col, Flex, Row} from 'landing-uikit';

import {InteractiveCard} from '../InteractiveCard';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Checkbox, Flex} from '@gravity-ui/uikit';
import {Checkbox, Flex} from 'landing-uikit';
import React from 'react';

import {InteractiveCard} from '../InteractiveCard';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
Person,
ThumbsUp,
Volume,
} from '@gravity-ui/icons';
import {Col, Flex, Icon, Row} from '@gravity-ui/uikit';
} from 'landing-icons';
import {Col, Flex, Icon, Row} from 'landing-uikit';

import {block} from '../../../../utils';
import {InteractiveCard} from '../InteractiveCard';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TextInput} from '@gravity-ui/uikit';
import {TextInput} from 'landing-uikit';
import React from 'react';

import {InteractiveCard} from '../InteractiveCard';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Theme, ThemeProvider, ToasterComponent, ToasterProvider} from '@gravity-ui/uikit';
import {Theme, ThemeProvider, ToasterComponent, ToasterProvider} from 'landing-uikit';
import React from 'react';

import {block} from '../../../../utils';
Expand Down
Loading
Loading