Skip to content

Commit

Permalink
Release by 24.04.2024 (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc authored Apr 25, 2024
2 parents 63715d2 + 6c0ac87 commit b57bdfd
Show file tree
Hide file tree
Showing 407 changed files with 22,114 additions and 96,958 deletions.
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ packages/plasma-asdk/*
packages/sdds-serv/*
!packages/sdds-serv/src

packages/caldera/*
!packages/caldera/src

packages/caldera-online/*
!packages/caldera-online/src

Expand Down
20 changes: 0 additions & 20 deletions .github/actions/prepare-android-env/action.yml

This file was deleted.

11 changes: 6 additions & 5 deletions .github/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
'caldera-online': {
scope: [...commonScope, 'caldera-online-themes', 'plasma-new-hope'],
themes: 'caldera-online-themes',
required: ['plasma-core'],
},
'plasma-asdk': {
scope: [...commonScope, 'plasma-tokens-b2b', 'plasma-typo', 'plasma-themes', 'plasma-new-hope'],
Expand All @@ -20,16 +21,16 @@ module.exports = {
'plasma-tokens-web',
'plasma-typo',
],
required: ['plasma-new-hope'],
required: ['plasma-new-hope', 'plasma-core'],
themes: '',
},
'plasma-new-hope': {
scope: [...commonScope, 'plasma-core'],
required: [],
required: ['plasma-core'],
},
'plasma-ui': {
scope: [...commonScope, 'plasma-core', 'plasma-typo'],
required: ['plasma-icons'],
required: ['plasma-icons', 'plasma-core'],
themes: '',
},
'plasma-web': {
Expand All @@ -43,12 +44,12 @@ module.exports = {
'plasma-tokens-web',
'plasma-typo',
],
required: ['plasma-new-hope'],
required: ['plasma-new-hope', 'plasma-core'],
themes: '',
},
'sdds-serv': {
scope: [...commonScope, 'sdds-themes', 'plasma-new-hope'],
required: [],
required: ['plasma-core'],
themes: 'sdds-themes',
},
};
36 changes: 28 additions & 8 deletions .github/processing-scope.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// INFO: HAS_ASSETS - это флаг для управления логикой "@auto-it" плагина upload-assets-extend
// INFO: Изменения в plasma-tokens или plasma-tokens-utils так же повлияют на то что в packagesList окажется plasma-tokens-native

/**
* Define CI config
* @typedef {object} json
Expand Down Expand Up @@ -37,14 +34,15 @@ module.exports = () => {
PROCESSED_DATA: [],
HAS_PACKAGES_CYPRESS_RUN: false,
HAS_PACKAGES_DS_CHANGES: false,
HAS_DEPLOY_WEBSITE: false,
HAS_ASSETS: false,
};
}

/**
* Processed data - packages name without "@salutejs/"
* @example
* ["plasma-web", "plasma-ui", "caldera"]
* ["plasma-web", "plasma-ui", "caldera-online"]
*/
const PROCESSED_DATA = rawData.map((item) => item.replace('@salutejs/', ''));

Expand All @@ -60,17 +58,39 @@ module.exports = () => {
/**
* List packages who has a documentations artifacts: storybook, docusaurus
* @example
* ["plasma-web", "caldera", "sdds-serv"]
* ["plasma-web", "caldera-online", "sdds-serv"]
* item - project package,
* @example
* "plasma-web-docs" or "sdds-serv"
*/
const PACKAGES_DOCUMENTATIONS_RUN = PROCESSED_DATA.filter((item) => CONFIG.PACKAGES_DS.includes(item));
const PACKAGES_DOCUMENTATIONS_RUN = PROCESSED_DATA.reduce((acc, item) => {
// INFO: When `lerna la` return only docs package then need get client package
// INFO: @example get 'plasma-web-docs' -> 'plasma-web'
const packageDS = item.endsWith('-docs') ? item.replace('-docs', '') : item;

if (CONFIG.PACKAGES_DS.includes(packageDS) && !acc.includes(packageDS)) {
acc.push(packageDS);
}

return acc;
}, []);

const HAS_PACKAGES_DS_CHANGES = Boolean(PACKAGES_DOCUMENTATIONS_RUN.length);

const HAS_DEPLOY_WEBSITE = HAS_PACKAGES_DS_CHANGES || PROCESSED_DATA.includes('plasma-website');

// INFO: HAS_ASSETS - это флаг для управления логикой "@auto-it" плагина upload-assets-extend
// INFO: Изменения в plasma-tokens или plasma-tokens-utils так же повлияют на то что в packagesList окажется plasma-tokens-native
const HAS_ASSETS = PROCESSED_DATA.includes('plasma-tokens-native');

return {
RAW_DATA: JSON.stringify(rawData),
PACKAGES_DOCUMENTATIONS_RUN: JSON.stringify(PACKAGES_DOCUMENTATIONS_RUN),
PACKAGES_CYPRESS_RUN: JSON.stringify(PACKAGES_CYPRESS_RUN),
PROCESSED_DATA: JSON.stringify(PROCESSED_DATA),
HAS_PACKAGES_CYPRESS_RUN: Boolean(PACKAGES_CYPRESS_RUN.length),
HAS_PACKAGES_DS_CHANGES: Boolean(PACKAGES_DOCUMENTATIONS_RUN.length),
HAS_ASSETS: PROCESSED_DATA.includes('plasma-tokens-native'),
HAS_ASSETS,
HAS_DEPLOY_WEBSITE,
HAS_PACKAGES_DS_CHANGES,
};
};
74 changes: 0 additions & 74 deletions .github/workflows/android-code-quality-check.yml

This file was deleted.

8 changes: 5 additions & 3 deletions .github/workflows/documentation-deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
deploy-website:
name: Deploy website artifacts
needs: [ state ]
if: ${{ fromJSON(needs.state.outputs.STATE).HAS_PACKAGES_DS_CHANGES }}
if: ${{ fromJSON(needs.state.outputs.STATE).HAS_DEPLOY_WEBSITE }}

runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -113,7 +113,8 @@ jobs:
deploy-artifacts:
name: Deploy artifacts
needs: [ state,deploy-website ]
needs: [ state, deploy-website ]
if: ${{ fromJSON(needs.state.outputs.STATE).HAS_PACKAGES_DS_CHANGES }}
runs-on: ubuntu-latest
env:
PR_NAME: pr-${{ github.event.number }}
Expand Down Expand Up @@ -202,7 +203,8 @@ jobs:
attache-comment:
name: Attached comment
needs: [ state, deploy-artifacts ]
needs: [ state, deploy-website, deploy-artifacts ]
if: ${{ always() && (contains(needs.deploy-website.result, 'success') || contains(needs.deploy-artifacts.result, 'success')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Loading

0 comments on commit b57bdfd

Please sign in to comment.