Skip to content

Commit

Permalink
Zl/v4.20.0 sync (#65)
Browse files Browse the repository at this point in the history
* feat: add aria-* to Spin (ant-design#34408)

* feat: add aria

* feat: update other snap

* feat: update logic

* chore: export css variable func (ant-design#34436)

* docs(module:timeline): fix typo (ant-design#34389)

* docs(module:timeline): fix typo

* docs(module:timeline): fix typo

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>

* docs(✨ ): changelog for 4.19.2 (ant-design#34472)

* docs: changelog for 4.19.2

* fix changelog lint

* chore: upgrade rc-menu to 9.3.x (ant-design#34473)

* docs(components:Cascader): supplement the API documentation (ant-design#34466)

* docs(components:Cascader): supplement the API documentation

* docs(Cascader:en-US): supplement the API documentation

* fix: input classname in affix wrapper (ant-design#34474)

* chore: add focus warning for Input (ant-design#34475)

* chore: add focus warning for Input

* chore: code clean

* chore: remove duplicate variables

* refactor: move prefixCls to wrapper (ant-design#34482)

* refactor: move prefixCls to wrapper

* fix: name change

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>

* docs: dropdownRender usage

ant-design@2de1a15

* refactor: replace deprecated String.prototype.substr() (ant-design#34498)

String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with functions which aren't.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

* test: Update snapshot

* docs: fix alert docs escape

* fix: missing status style for RangePicker (ant-design#34509)

* fix: range picker should has status style

* chore: code clean

* chore: code clean

* chore: code clean

* fix: Typography ediable style (ant-design#34518)

- [x] Fix Editable Textarea height jump in Firefox
- [x] Fix Editable Typography.Title confirm icon position

* docs: fix ---

* fix: typos in Input.tsx (ant-design#34534)

* chore(🤖): add ChainAlert action (ant-design#34530)

* fix: col-x class names in css when using custom prefix (ant-design#34494)

* fix: col-x class names of Row and Col components when using custom prefix

* refactor: reuse @col-prefix-cls and @row-prefix-cls

* refactor: move @col-prefix-cls and @row-prefix-cls to mixin.less

* docs: update Input docs for default size in Form (ant-design#34537)

* docs: move treeLoadedKeys to TreeSelect

close ant-design#34538

* chore(deps-dev): bump @types/gtag.js from 0.0.8 to 0.0.9 (ant-design#34540)

Bumps [@types/gtag.js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/gtag.js) from 0.0.8 to 0.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/gtag.js)

---
updated-dependencies:
- dependency-name: "@types/gtag.js"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Badge RTL wrong placement (ant-design#34545)

* fix: tooltip preset color (ant-design#34548)

* fix: tooltip preset color

* chore: code clean

* fix: apply scale transform to disabled star (ant-design#34547)

* test: add type test for Input

* docs: add Currency recommendation

* chore(deps-dev): bump @types/gtag.js from 0.0.9 to 0.0.10 (ant-design#34561)

Bumps [@types/gtag.js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/gtag.js) from 0.0.9 to 0.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/gtag.js)

---
updated-dependencies:
- dependency-name: "@types/gtag.js"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: lt_LT locale for typeTemplate (ant-design#34567)

* fix: Update it_IT locales (ant-design#34566)

* feat: Menu support `items` (ant-design#34559)

* docs: Update Menu cn doc

* chore: update ts def

* chore: support convert

* docs: more demo

* docs: more demo

* docs: all menu demos

* docs: dropdown demo

* docs: dropdown all demos

* docs: update demo

* test: coverage

* docs: more demo

* docs: layout demo

* docs: all demo

* chore: fix ts lint

* docs: fix doc

* docs: all docs

* chore: add issues similarity analysis and dingtalk issue notice actions (ant-design#34583)

* chore: add Issues Similarity Analysis action

* Delete suggest-related-links.yml

* Create issue-sync-dingtalk.yml

* Update issue-sync-dingtalk.yml

* Update issue-sync-dingtalk.yml

* Update issue-sync-dingtalk.yml

* Update issues-similarity-analysis.yml

* Delete chain-alert.yml

* chore(🤖): Update issue-open-check.yml (ant-design#34589)

* Update issue-open-check.yml

* Delete issue-sync-dingtalk.yml

* Update issue-open-check.yml

* feat: dialog,image add rootClassName api (ant-design#34574)

* feat: dialog add rootClassName api

* feat: rc-image add rootClassName api

* feat: update doc

* Update issue-open-check.yml

* Update issue-open-check.yml

* chore(🤖): upgrade github actions (ant-design#34599)

* ci: update result

* ci: fix result

* Update issue-open-check.yml

* feat(row): add support for space-evenly (ant-design#34606)

* feat(row): add support for space-evenly

* docs: update demo snapshot.

Co-authored-by: gp5251 <gp5251@qq.com>

* fix: clear icon style (ant-design#34610)

* docs: add 4.19.3 changhelog (ant-design#34617)

Co-authored-by: 期贤 <qixian.cs@antgroup.com>

* docs: update changelogs

* chore: fix remote no work error

* fix: when fullscreen is false, the element returned by dateFullCellRender cannot be interactive (ant-design#34614)

* fix: when fullscreen is false, the element returned by dateFullCellRender cannot be interactive

* test: add test for Calendar

* fix: BackTop responsive in RTL (ant-design#34626)

* feat: Tree support rootClassName & rootStyle (ant-design#34578)

* feat: tree support rootClassName & rootStyle

* feat: Tree support rootClassName and rootStyle

* chore: update rc-cascader

* chore: update rc-tree

* chore: update cascader

* chore: update deps

* fix: Badge Animation enter and leave in RTL (ant-design#34641)

* fix: Badge Animation enter and leave in RTL

* [CodeFactor] Apply fixes to commit 87f1866

[ci skip] [skip ci]

Co-authored-by: codefactor-io <support@codefactor.io>

* fix: wrong word and cancel export inner interface (ant-design#34643)

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>

* chore(deps): update actions/cache action to v3 (ant-design#34645)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* docs: fix default value of height in drawer component (ant-design#34652)

* docs: Create README-ja_JP.md (ant-design#34638)

* Create README-ja_JP.md

* Update README-uk_UA.md

* Update README-pt_BR.md

* Update README-zh_CN.md

* Update README-sp_MX.md

* chore: update Space vertical demo (ant-design#34647)

* chore: update Space vertical demo

close ant-design#34609

* fix snapshot

* fix: fix small steps dot positon (ant-design#34651)

* fix: fix small steps dot positon

* chore: code clean

* docs: add demo

* fix: support  Layout, Header and Footer given ref (ant-design#34650)

* feat: support layout components given refs

* test: add ensure given ref test case

* fix: update test

Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>

* feat: Typography.Text Pass event to onCopy. (ant-design#34655)

* Update issue-open-check.yml

* chore: remove issue body in notice

* chore:  refactor message types implementation (ant-design#34654)

* chore: fix moment snapshot change

* docs: fix type of style in drawer component (ant-design#34665)

* fix(table) filterSearch TypeScript declaration (ant-design#34671)

* fix: types declaration

* fix(table): filterSearch TypeScript declaration

* feat: add filterResetToDefaultFilteredValue api (ant-design#34355)

* feat: add filterResetToDefaultFilteredValue api

* feat: fix lint

* feat: update test case

* feat: update doc

* docs: update readme

* feat: delete drawer wrap (ant-design#34673)

* fix: fix Ant Design Charts url (ant-design#34685)

* chore: update Item component test case (ant-design#34686)

Co-authored-by: Zack Chang <zackchangjx@foxmail.com>

* refactor: move override code in form (ant-design#34694)

* refactor: move override code in form

* refactor: radio and checkbox

* chore: code clean

* test: fix lint

* test: fix lint

* chore: update test cases of Spin (ant-design#34695)

* fix: Descriptions number 0 can't render span (ant-design#34696)

* fix: number 0 can't render span

* Update Cell.tsx

* chore: add test case

* ci: update pr merge branch

* docs: fix type of style in tabs component (ant-design#34706)

* refactor: feedbackIcon provided by form (ant-design#34712)

* refactor: feedbackIcon migration

* test: update snapshot

* refactor: adjust TextArea in form (ant-design#34714)

* fix: notification prevent interaction on elements which under it (ant-design#34716)

* fix: notification prevent interaction on elements which under it

close ant-design#34700

* fix test case

* refactor: use useContext in skeleton (ant-design#34699)

* feat: use useContext in skeleton

* feat: use useContext in skeleton

* feat: update for lint

* feat: add showCheckedStrategy api  for cascader (ant-design#34568)

* feat: add showCheckedStrategy api for cascader

* feat: update doc

* feat: add demo and update doc

* feat: update demo

* chore: add control-radius (ant-design#34727)

* docs: changelog 4.19.4 (ant-design#34734)

* fix: tag-border-radius not work (ant-design#34741)

* chore: more less variables (ant-design#34746)

* chore: bump 4.19.5-alpha.0

* feat: Dropdown support switch options with arrow keys (ant-design#34738)

* feat: dropdown support auto-focus

* chore: code clean

* fix: skeleton cannot display children (ant-design#34751)

* fix: skeleton cannot display children

* fix: type error

* fix: add test case

Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>

* chore: update rc-tabs version (ant-design#34757)

* test: Update snapshot (ant-design#34758)

* fix: ci fail rollback

* fix: ci fail rollback

* feat: Input.Group prevent components from getting style from Form.Item (ant-design#34764)

* feat: Input.Group provide isFormInput false

* test: update snapshot

* chore: code clean

* docs: replace grid design img (ant-design#34771)

* chore: replace grid design img

* fix: code error

* chore: comiple use matrix (ant-design#34770)

* chore: comiple use matrix

* chore: 16 deps

* chore: not install 16

* chore: update

* chore: to 16

* chore: install 16

* chore: install 16

* chore: install 16

* chore: install 16

* chore: concurrent

* chore: back all

* chore: fix lines

* chore: cancel if new comes

* chore: single dist speed up

* chore: fix

* chore: fix

* chore: update

* fix: deps

* test: update snapshot

* chore: React 18 test case (ant-design#34781)

* chore: add 18 test

* chore: update test flow

* chore: fail fast

* chore: foce ci

* chore: more if

* chore: test it

* chore: back of it

* chore: master only

* chore: fix spell

* chore: force install

* test: comment 16 tmp

* chore: use react 17

* chore: install 18

* chore: back of 16 & 17

* fix: Pagination should display middle size Select when ConfigProvider componentSize is large (ant-design#34756)

* fix: Pagination should display middle size Select
when ConfigProvider componentSize is large

close ant-design#34744

* fix snapshot

* fix: correct className (ant-design#34791)

* feat: Anchor supports `getCurrentAnchor(activeLink)` (ant-design#34799)

close ant-design#34784

* docs: update draggable demo with rtl mode (ant-design#34785)

* docs: update draggable demo with rtl mode

* test: update tabs demo snapshot

* Update faq.zh-CN.md

* docs: patch 4.19.3 change log (ant-design#34821)

* Patch 4.19.3 changelog

* docs: patch logs

* docs: fix author

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* emoji

* emoji

Co-authored-by: afc163 <afc163@gmail.com>

* chore: minify themes css (ant-design#34824)

* docs: Add faq (ant-design#34830)

* feat: Tree `switcherIcon` prop support render-prop (ant-design#34470)

* feat: Tree `switcherIcon` prop support render-prop

* add test for `switcherIcon` render-prop

* change the `switcherIcon` prop type of `TreeSelect`

* fix switcherIcon render-prop condition

* fix switcherIcon

* fix: Form unmount miss origin store value (ant-design#34845)

* docs: 4.19.5 changelog (ant-design#34851)

* docs: demo support react18 (ant-design#34843)

* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo

* docs: add size property to progress (ant-design#34860)

* chore(deps-dev): bump eslint-plugin-unicorn from 41.0.1 to 42.0.0 (ant-design#34861)

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 41.0.1 to 42.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](sindresorhus/eslint-plugin-unicorn@v41.0.1...v42.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Update de_DE.tsx (ant-design#34836)

* fix: set requestId to null after fn was cancelled (ant-design#34858)

* feat: Support ref for Title, Text, Paragraph (ant-design#34847)

* feat: Support ref for Title, Text, Paragraph

* feat: Add tests for Title, Paragraph and Text

* fix: add aria-checked prop to checkbox (ant-design#34862)

* fix: add aria-checked prop to checkbox

* fix: update snapshots

* fix: update aria-checked logic and snapshots

* refactor: change props order

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: Dzmitry Yarmoshkin <dzmitry_yarmoshkin@epam.com>
Co-authored-by: afc163 <afc163@gmail.com>

* chore(deps): update moment to 2.29.2 (ant-design#34867)

Co-authored-by: Michael Crenshaw <michael_crenshaw@intuit.com>

* fix: react 18 test fixing (ant-design#34787)

* fix: try fix

* chore: ci

* test: recover

* test: more test case

* test: more and mote

* test: btn test

* fix: react 18 compitable

* chore: more test

* test: all confirm test

* chore: tmp

* chore: test lib

* chore: tmp

* chore: tmp

* test: back of part

* test: back of menu index test

* test: more test

* test: form test

* test: rm IE11 test case

* chore: fix compatible

* chore: clean up

* chore: back of all test case

* test: ignore 18 lines

* chore: remove render test of enzyme in upload

* test: back of IE11 test case to fit 100% coverage

* chore: fix pkg deps

* docs: site wrap with strict mode (ant-design#34895)

* docs: site wrap with strict mode

* chore: bump bisheng

* fix: not warpper animation for badge RTL (ant-design#34899)

* fix: skeleton cannot dispaly without children and loading props : Skeleton(...) return nothing (ant-design#34872)

* fix: skeleton cannot dispaly without children

* [CodeFactor] Apply fixes to commit 0b4a968

[ci skip] [skip ci]

* fix: update skeleton

Co-authored-by: codefactor-io <support@codefactor.io>

* refactor: add optionType for Radio internally (ant-design#34849)

* refactor: add optionType for Radio internally

* fix: lint

* fix: update snapshot

* feat: remove useless condition for RadioGroupContext

* test: add test case for Radio.Button

* chore(deps-dev): bump @types/react-dom from 17.0.15 to 18.0.0 (ant-design#34943)

Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 17.0.15 to 18.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Compatible for @types/react@18 (ant-design#34937)

* chore: bump types def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: free --legacy-peer-deps

* chore: ignore peer

* chore: fix ts logic

* chore: use fork docsearch

* chore: fix demo ts

* chore(deps): update dependency react-highlight-words to ^0.18.0 (ant-design#34954)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* feat: add new component `Segmented` (ant-design#34319)

* feat: basic implements in antd

* feat: use rc-segmented

* feat: add some demos

* feat: support dark theme

* docs: add more demos

* feat: support `icon` in segmented

* docs: format content

* test: add test cases

* docs: update docs

* chore: update

* fix: lint issues

* style: add border-radius for selected effect

* style: change border-radius-base

* chore: update gitignore

* feat: segmented support block

* chore: update gitignore

* feat: support block

* feat: add test case

* feat: support size

* docs: update demos

* chore: update

* chore: update

* test: update

* style: update colors

* style: hover and focus styles

* doc: add version mark in docs

* fix: style lint issue

* fix: some lint issues

* doc: add version in demo mds

* doc: add version mark before api details

* Revert "doc: add version in demo mds"

This reverts commit 2a9e86f.

* test: only test for thumb appear

* style: update color vars

* style: add transition

* style: text vertial align

* test: update snapshots

* feat: add preview svg and support dark theme

* fix: update test snapshot

* docs: update docs

* fix: remove useless z-index

* build: add 1kb for bundlesize of antd.variable.min.css

Co-authored-by: taian.lta <taian.lta@antgroup.com>

* ci: Add GitHub token permissions for workflows (ant-design#34946)

* fix: Form layout span 24 usage in responsive mode (ant-design#34907)

close ant-design#34903

* fix: small size of Table style problem (ant-design#34963)

close ant-design#34949

* test: back of coverage (ant-design#34964)

* test: fix coverage

* chore: bump bisheng

* chore: clean up

* chore: update deps

* chore: test coverage

* chore: test fix

* chore: fix ts

* chore: fix ts demo

* docs: Add faq about chrome with upload

* feat: crossorigin attribute of Upload (ant-design#34981)

* feat: Add crossOrigin prop to thumbnail image

* feat: Add test cases about crossOrigin prop of Upload component

* doc: Add a description about crossOrigin prop to Upload component manual

* Update components/upload/interface.tsx

Update type definition using React.ImgHTMLAttributes

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: hyunseok.kim <hyunseok.kim@42dot.ai>
Co-authored-by: afc163 <afc163@gmail.com>

* docs: update faq (ant-design#34984)

* test: Update snapshot

* feat: Image preview support keyboard switch (ant-design#34992)

* style: remove selected item style of AutoComplete (ant-design#34996)

close ant-design#34975

* chore(deps-dev): bump react-helmet-async from 1.2.3 to 1.3.0 (ant-design#34997)

Bumps [react-helmet-async](https://github.com/staylor/react-helmet-async) from 1.2.3 to 1.3.0.
- [Release notes](https://github.com/staylor/react-helmet-async/releases)
- [Commits](https://github.com/staylor/react-helmet-async/commits)

---
updated-dependencies:
- dependency-name: react-helmet-async
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: use ~ instead of ^ for rc-segmented

* docs: recommend S2 and ProTable in table documentation (ant-design#34998)

* docs: recommend S2 and ProTable in table documentation

* Update index.en-US.md

* Update index.en-US.md

* docs: changelog for 4.20.0-alpha.0 (ant-design#34977)

* docs: changelog for 4.20.0

* chore: bump version to 4.20.0

* docs: update version date

* chore: update version to 4.20.0-alpha.0

* docs: remove react 18 compatible

* fix: arrow radius use fixed value (ant-design#34999)

* fix: Spin rotate deg number (ant-design#35005)

close ant-design#34866

* docs(input): use Intl.NumberFormat (ant-design#34985)

Co-authored-by: maxin <maxin@growingio.com>

* chore(deps-dev): bump glob from 7.2.0 to 8.0.1 (ant-design#35017)

Bumps [glob](https://github.com/isaacs/node-glob) from 7.2.0 to 8.0.1.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](isaacs/node-glob@v7.2.0...v8.0.1)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(cascader): search result not fill the entire panel (ant-design#35019)

Co-authored-by: wanghao <wanghao.wong@bytedance.com>

* fix: Select and AutoComplete scroll behavior by keyboard (ant-design#35025)

fix ant-design#34898
fix ant-design#35022

* chore: clean up some project files (ant-design#35028)

* chore: remove unused Upload in form styles (ant-design#35033)

* chore: remove unused Upload in form styles

* Update Upload.tsx

* Update Upload.tsx

* test: update snapshot

* fix: Notification & message throw `createRoot` warning in React 18 (ant-design#35030)

* chore: bump notification version

* test: notification test case

* test: more test case

* test: part message test

* test: rest message test

* test: notification config test

* feat: Form support useWatch (ant-design#35036)

* feat: Support useWatch

* test: update test case

* chore: update snapshot

* feat: Image PreviewGroup Support top progress rendering (ant-design#35038)

* refactor: wrap picker with FC (ant-design#34994)

* refactor: wrap picker with FC

* chore: code clean

* feat: cast type

* test: fix test

* test: Update snapshot

* docs: More info about useWatch (ant-design#35039)

* docs: more about useWatch

* test: Update test case

* docs: more info

* docs: more & more

* feat: add useFormInstance

* chore: add version info

* docs: simplify demo code, ant-design#30853 (ant-design#35050)

* style: cleanup upload unused styles (ant-design#35052)

* fix: Upload pass UploadList prefixCls (ant-design#34944)

* fix: pass UploadList prefixCls

* test: <Upload /> should pass <UploadList /> prefixCls

Co-authored-by: chenshanwang <chenshanwang@lianfan.com>

* Update overview.en-US.md

* docs: fix overview content (ant-design#35055)

* docs: 修复中文文档没有与英文文档同步的问题

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>

* test: fix jest snapshot

* test: update test cases to testing-lib (ant-design#35056)

* test: migrate some test case to testing-library (ant-design#35062)

* test: migrate some test case to testing-library

* chore: code clean

* test: fix stylelint

* test: test case

* ci: up version (ant-design#35067)

* ci: up version

* Update verify-files-modify.yml

* docs: Update useWatch docs

* docs: update docs version

* docs: add 4.20.0-alpha.1 changelog (ant-design#35070)

* docs: add 4.20.0-alpha.1 changelog

* docs: update

* docs: Update changelog missing useFormInstance

* chore: rc-dialog id unique sync (ant-design#35072)

* chore: Compatible for @types/react@18 (ant-design#35075)

* chore: Compatible for @types/react@18

* chore: Compatible for @types/react@18

* chore: 🤖 component Steps ts def for react18 (ant-design#35076)

✅ Closes: ant-design#35074

Co-authored-by: ronggui.shu <ronggui.shu@sci-inv.com>

* test: wrap React.StrictMode for test cases (ant-design#35026)

* test: React StrictMode

* test: fix Spin test

* chore: wrapper enzyme

* test: fix setState

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: disable part of it

* test: fix test & add placeholder

* test: Use orign enzyme mount

Co-authored-by: zombiej <smith3816@gmail.com>

* test: Update snapshot

* fix: fixed arrow border radius variables (ant-design#35086)

* style: fix the problem of inconsistent styles in RTL mode (ant-design#35088)

* refactor: change anchor to fc for the cssinjs prepare (ant-design#35073)

* refactor: change anchor to fc for the cssinjs prepare

* fix: fix anchor test

* style: fix the style of progress rendering at the top of component Image PreviewGroup (ant-design#35092)

* style: fix the style of progress rendering at the top of component Image PreviewGroup

* style: add debug-demo for top progress countRender

* pref: upgrade rc-menu (ant-design#35071)

* pref: upgrade rc-menu

* Update package.json

Co-authored-by: afc163 <afc163@gmail.com>

* fix: Form in React 18 StrictMode (ant-design#35096)

* test: fix with react 18

* fix: Form in StrictMode

* test: clean up

* test: clean up

* chore: bump rc-motion version

* chore: fix test case logic

* test: back of it

* test: back missing test case

* docs: update Drawer overview image (ant-design#35099)

* docs: update Drawer overview image

* Update index.en-US.md

* chore: tweak upload style (ant-design#35097)

* chore: tweak upload style

* chore: update snapshot

* fix: cn menus doc (ant-design#35078)

* chore: update snapshot due to rc-trigger bumped (ant-design#35106)

* style: Switch background should not be transparent (ant-design#35103)

* docs: improve upload demos (ant-design#35104)

* docs: improve upload demos

* Update drag-sorting.md

* docs: add input showCount lose focus desc. close ant-design#35080

* chore: fix cirrus-actions/rebase

cirrus-actions/rebase#78

* fix(Typography): change less function to less variable in danger style (ant-design#35113)

* refactor: wrap Spin with FC (ant-design#35114)

* refactor: wrap Spin with FC

* chore: code clean

* fix: breadcrumb shows the number (ant-design#35123)

* docs: Add deprecated usage (ant-design#35128)

* docs: Update Menu demo sample

* docs: improve menu usage for items (ant-design#35131)

* docs: improve menu usage for items

* test: update snapshot

* docs: update menu title

* docs: update getContainer of Modal and Drawer (ant-design#35141)

close ant-design#35124

* chore: bump dropdown with inject mark (ant-design#35153)

* docs: Update Dropdown basic demo icon

* docs: Add dropdown menu missing keys

* chore: remove Breadcrumb Dropdown warning (ant-design#35162)

* fix: DropDownProps => DropdownProps (ant-design#35161)

* fix: DropDown => Dropdown

* chore: leave DropDownProps for compatibility

* docs: add Application Frameworks recommendation (ant-design#35168)

* docs: add Application Frameworks recommendation

* add Application Frameworks recommendation

* typo fix

* docs: segmented update (ant-design#35171)

* docs: segmented update

* test: fix lint

* docs: Update demo with Space (ant-design#35172)

* fix: small table selection dropdown margin issue

close ant-design#35167

* fix: small table selection dropdown margin issue (ant-design#35173)

close ant-design#35167

* docs: Update Dropdown demo

* fix: small/middle table selection dropdown margin issue (ant-design#35174)

* fix: small/middle table selection dropdown margin issue

* Update index.less

* refactor: Simplify Button Group Style (ant-design#35175)

* chore: refactor grp with context

* test: Update snapshot

* chore: clean up

* test: fix test case

* chore: clean up

* test: fix test

* docs: faq about modal. close ant-design#35177

* test: fix test in segmented (ant-design#35183)

* test(🏞): batch upload snapshots to argos-ci.com (ant-design#35181)

* fix: Upload interface generic type (ant-design#35158)

* fix:Uplooad组件UploadChangeParam fileList不使用范型

* feat:upload component interface generic test

* docs(🛡): update README badges (ant-design#35185)

* docs: update README-zh_CN.md

* Update README-uk_UA.md

* Update README-pt_BR.md

* chore: fix argos-ci upload BATCH_SIZE

* fix: code to use @html-selector variable (ant-design#35186)

* revert: batchCount of argos-ci

revert 2d654bf

* docs: add debug demo for segmented (ant-design#35176)

* docs: add debug demo for segmented

* chore: update

* chore: update

* style: `Segmented` supports rtl styles (ant-design#35188)

* perf: optimize calculation of filteredKeysIsAllControlled (ant-design#35064)

* perf: optimize calculation of filteredKeysIsAllControlled

* fix: ci failure

* fix: modify codes by suggestion

* chore: fix argos-ci check status in PR (ant-design#35193)

* chore: batch upload argos-ci snapshots

* test: added commit and branch back for ui-upload.yml

* feat: upgrade rc-segmented v2 (ant-design#35187)

* docs: add debug demo for segmented

* chore: update

* feat: upgrade rc-segmented v2

* Update components/segmented/__tests__/index.test.tsx

Co-authored-by: afc163 <afc163@gmail.com>

* Update components/segmented/demo/controlled-two.md

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: afc163 <afc163@gmail.com>

* site: tweak theme button margin of site footer (ant-design#35192)

* fix: remove Tabs overflow hidden style (ant-design#35195)

close ant-design#34021
close ant-design#35136

* docs: add demo link for Menu legacy usage (ant-design#35202)

* docs: add demo links for Menu legacy usage

* Update index.en-US.md

* chore: update ui.yml

* docs: 4.20.0 changelog (ant-design#35203)

* docs: init 4.20.0 changelog

* chore: merge

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* docs: Update changelog

* chore: bump react version

* chore: revert react version

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: afc163 <afc163@gmail.com>

* docs: fix changelog date

* docs: Update Segmented changelog

* docs: Note for 18 known issue

* test: Replace transfer part test with testing lib (ant-design#35216)

* test: Replace transfer part test with testing lib

* chore: clean up

* fix: upload circle ref (ant-design#34379)

Co-authored-by: kanweiwei <kanweiwei@nutstore.net>

* chore: add useWatch test placeholder

* chore: run image snapshots on every branches

Co-authored-by: 黑雨 <wangning4567@163.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: YuTao <yutao0818@vip.qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: EvanOne(文一) <1656081615@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: Long Hao (龙濠) <45565100+LongHaoo@users.noreply.github.com>
Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
Co-authored-by: CommanderRoot <CommanderRoot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: vagusX <vagusX@users.noreply.github.com>
Co-authored-by: mic-web <4804412+mic-web@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Co-authored-by: Yunwoo Ji <unu12073@gmail.com>
Co-authored-by: Anizcus <48563303+Anizcus@users.noreply.github.com>
Co-authored-by: Gianmarco Rengucci <rengucci.gianmarco@gmail.com>
Co-authored-by: paul <34345790@qq.com>
Co-authored-by: gp5251 <gp5251@qq.com>
Co-authored-by: 陈帅 <qixian.cs@outlook.com>
Co-authored-by: 期贤 <qixian.cs@antgroup.com>
Co-authored-by: 章鱼 <ryker.zy@gmail.com>
Co-authored-by: Hamed Mohammadzadeh <36853974+hmz22@users.noreply.github.com>
Co-authored-by: codefactor-io <support@codefactor.io>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: NullPointerException <62196528+onein528@users.noreply.github.com>
Co-authored-by: dengqing <1247748612@qq.com>
Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>
Co-authored-by: youngz <chinayangzhan@126.com>
Co-authored-by: zhao-huo-long <lijiuyi1995@outlook.com>
Co-authored-by: huangkairan <56213366+huangkairan@users.noreply.github.com>
Co-authored-by: Yiming <ymjrcc@qq.com>
Co-authored-by: Zack Chang <73225408+jrr997@users.noreply.github.com>
Co-authored-by: Zack Chang <zackchangjx@foxmail.com>
Co-authored-by: shuaijiumei <63175611+shuaijiumei@users.noreply.github.com>
Co-authored-by: miracles1919 <516571350@qq.com>
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: zqran <uuxnet@gmail.com>
Co-authored-by: Daniel Pfeffer <mail@danielpfeffer.de>
Co-authored-by: Tmk <i@tmk.im>
Co-authored-by: Minh Quy <sugiacupit@gmail.com>
Co-authored-by: Dzmitry Yarmoshkin <spanb4@gmail.com>
Co-authored-by: Dzmitry Yarmoshkin <dzmitry_yarmoshkin@epam.com>
Co-authored-by: Michael Crenshaw <michael@crenshaw.dev>
Co-authored-by: Michael Crenshaw <michael_crenshaw@intuit.com>
Co-authored-by: zhang lay <lay.zhang@shopee.com>
Co-authored-by: Albert Zhang <ziyuximing@163.com>
Co-authored-by: taian.lta <taian.lta@antgroup.com>
Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
Co-authored-by: Hyunseok.Kim <dragmove@gmail.com>
Co-authored-by: hyunseok.kim <hyunseok.kim@42dot.ai>
Co-authored-by: PCCCCCCC <zpc.excel@foxmail.com>
Co-authored-by: Peach <scdzwyxst@gmail.com>
Co-authored-by: maxin <48519459+nnmax@users.noreply.github.com>
Co-authored-by: maxin <maxin@growingio.com>
Co-authored-by: 王浩 <boomler@hotmail.com>
Co-authored-by: wanghao <wanghao.wong@bytedance.com>
Co-authored-by: chensw <swchenforgetful@hotmail.com>
Co-authored-by: chenshanwang <chenshanwang@lianfan.com>
Co-authored-by: c0dedance <38075730+c0dedance@users.noreply.github.com>
Co-authored-by: AliRezaBeigy <AliRezaBeigyKhu@gmail.com>
Co-authored-by: littledian <1197434548@qq.com>
Co-authored-by: ronggui.shu <ronggui.shu@sci-inv.com>
Co-authored-by: Karott Schu <karott7@gmail.com>
Co-authored-by: nuintun <nuintun@gmail.com>
Co-authored-by: TrickyPi <33021497+TrickyPi@users.noreply.github.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
Co-authored-by: rendaoer <rendaoer@outlook.com>
Co-authored-by: Jefferson Rafael Kozerski <jeff.drumgod@gmail.com>
Co-authored-by: Yuyao Nie <nieyuyao0826@hotmail.com>
Co-authored-by: Camol <kwwnjujlc@sina.com>
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
  • Loading branch information
Show file tree
Hide file tree
Showing 594 changed files with 17,391 additions and 8,366 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ module.exports = {
webpack: {
infrad: 'components',
},
alias: {
map: [
['infrad/es', 'antd/es'],
['infrad/lib', 'antd/lib'],
],
},
},
},
parser: '@typescript-eslint/parser',
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/compressed-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
compressed-size:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: write # for preactjs/compressed-size-action to create PR comments
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/issue-check-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ on:
schedule:
- cron: "0 0 */15 * *"

permissions:
contents: read

jobs:
issue-check-inactive:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: check-inactive
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/issue-close-require.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ on:
schedule:
- cron: "0 0 * * *"

permissions:
contents: read

jobs:
issue-close-require:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: need reproduce
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ on:
issues:
types: [labeled]

permissions:
contents: read

jobs:
issue-labeled:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: help wanted
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/issue-open-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ on:
issues:
types: [opened]

permissions:
contents: read

jobs:
issue-open-check:
permissions:
contents: read # for visiky/dingtalk-release-notify to get latest release
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- uses: actions-cool/check-user-permission@v2
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/issue-remove-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ on:
issue_comment:
types: [created, edited]

permissions:
contents: read

jobs:
issue-remove-inactive:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: remove inactive
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/issues-similarity-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ on:
issues:
types: [opened, edited]

permissions:
contents: read

jobs:
similarity-analysis:
permissions:
issues: write # for actions-cool/issues-similarity-analysis to create issue comments
runs-on: ubuntu-latest
steps:
- name: analysis
uses: actions-cool/issues-similarity-analysis@v1.1.0
uses: actions-cool/issues-similarity-analysis@v1
with:
filter-threshold: 0.5
title-excludes: ''
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pr-check-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ on:
schedule:
- cron: "*/10 * * * *"

permissions:
contents: read

jobs:
pr-check-ci:
permissions:
checks: read # for actions-cool/check-pr-ci to get check reference
contents: write # for actions-cool/check-pr-ci to merge PRs
issues: write # for actions-cool/check-pr-ci to update issues
pull-requests: write # for actions-cool/check-pr-ci to update PRs
runs-on: ubuntu-latest
steps:
- uses: actions-cool/check-pr-ci@v1
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr-check-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ on:
pull_request_target:
types: [opened]

permissions:
contents: read

jobs:
pr-check-merge:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
if: (github.event.pull_request.head.ref == 'feature' || github.event.pull_request.head.ref == 'master') && github.event.pull_request.head.user.login == 'ant-design'
steps:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pr-open-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ on:
pull_request_target:
types: [opened, edited, reopened, synchronize]

permissions:
contents: read

jobs:
refuse:
permissions:
issues: write # for actions-cool/pr-welcome to create, update & react on issues
pull-requests: write # for actions-cool/pr-welcome to request reviewer
runs-on: ubuntu-latest
steps:
- uses: actions-cool/pr-welcome@v1
Expand All @@ -19,6 +25,8 @@ jobs:
close: true

check-changelog:
permissions:
pull-requests: write # for actions-cool/pr-check-fill to create or update PR comments
runs-on: ubuntu-latest
steps:
- name: check fill
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
# Prepare node modules. Reuse cache if available
setup:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ on:
types:
- completed

permissions:
contents: read

jobs:
deploy-site:
permissions:
actions: read # for dawidd6/action-download-artifact to query and download artifacts
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments
name: deploy preview
runs-on: ubuntu-latest
if: >
Expand Down Expand Up @@ -65,6 +72,10 @@ jobs:
number: ${{ steps.pr.outputs.id }}

build-site-failed:
permissions:
actions: read # for dawidd6/action-download-artifact to query and download artifacts
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments
name: build preview failed
runs-on: ubuntu-latest
if: >
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/preview-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ on:
pull_request_target:
types: [opened, synchronize, reopened]

permissions:
contents: read

jobs:
preview-start:
permissions:
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments
name: start preview info
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ on:
issue_comment:
types: [created]

permissions:
contents: read

jobs:
rebase:
permissions:
contents: write # for cirrus-actions/rebase to push code to rebase
pull-requests: read # for cirrus-actions/rebase to get info about PR
name: Rebase
if: github.event.issue.pull_request != '' && (contains(github.event.comment.body, '/rebase') || contains(github.event.comment.body, '\rebase'))
runs-on: ubuntu-latest
Expand All @@ -14,6 +20,6 @@ jobs:
with:
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/rebase@1.5
uses: cirrus-actions/rebase@1.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .github/workflows/release-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ name: Release Helper
on:
create

permissions:
contents: read

jobs:
release-helper:
permissions:
contents: write # for actions-cool/release-helper to create releases
if: github.event.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/site-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ name: Deploy website
on:
create

permissions:
contents: read

jobs:
setup:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/sync-gitee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ on:
- 3.x-stable
create:

permissions:
contents: read

jobs:
mirror:
permissions:
contents: none
runs-on: ubuntu-latest
if: github.repository == 'ant-design/ant-design'
steps:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
setup:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -40,7 +43,7 @@ jobs:

- name: install
if: steps.node_modules_cache_id.outputs.cache-hit != 'true'
run: npm ci --force
run: npm ci

lint:
runs-on: ubuntu-latest
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/ui-upload.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
# Upload 📷 UI snapshots to argos server, help visual regression testing.

name: UI Upload
name: 📷 UI Upload

on:
workflow_run:
workflows: ["📷 UI"]
types:
- completed

permissions:
contents: read

jobs:
upload-ui:
permissions:
actions: read # for dawidd6/action-download-artifact to query and download artifacts
pull-requests: read # for dawidd6/action-download-artifact to query commit hash
name: deploy preview
runs-on: ubuntu-latest
if: >
github.event.workflow_run.conclusion == 'success'
steps:
- name: checkout
uses: actions/checkout@v3

- name: Download commit artifact
uses: dawidd6/action-download-artifact@v2
with:
Expand All @@ -41,8 +49,15 @@ jobs:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
name: snapshots
path: imageSnapshots

- name: Install
run: npm i fast-glob lodash argos-cli

- name: Upload argos-ci
id: deploy
run: |
npx argos-cli upload ./ --token ${{ secrets.ARGOS_TOKEN }} --branch ${{ steps.branch.outputs.id }} --commit ${{ steps.commit.outputs.id }}
run: npm run argos
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
ARGOS_GITHUB_BRANCH: ${{ steps.branch.outputs.id }}
ARGOS_GITHUB_COMMIT: ${{ steps.commit.outputs.id }}
8 changes: 5 additions & 3 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- master

# Cancel prev CI if new commit come
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
imagesnapshot:
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -25,6 +23,10 @@ jobs:
path: package-temp-dir
key: lock-${{ github.sha }}

- uses: actions/setup-node@v3
with:
node-version: '16'

- name: create package-lock.json
run: npm i --package-lock-only --ignore-scripts

Expand Down

0 comments on commit af79f80

Please sign in to comment.