Skip to content

Commit

Permalink
Merge branch 'combobox-rhf' of https://github.com/salute-developers/p…
Browse files Browse the repository at this point in the history
…lasma into combobox-rhf
  • Loading branch information
iljs committed Nov 15, 2024
2 parents af2c988 + e4e21b9 commit 2b6cea9
Show file tree
Hide file tree
Showing 428 changed files with 24,301 additions and 8,930 deletions.
28 changes: 21 additions & 7 deletions .github/meta.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
const commonScope = ['plasma-icons', 'plasma-sb-utils', 'plasma-tokens', 'plasma-tokens-utils', 'plasma-themes', 'core-themes'];
const commonScope = [
'plasma-icons',
'plasma-sb-utils',
'plasma-tokens',
'plasma-tokens-utils',
'plasma-themes',
'core-themes',
];

module.exports = {
'plasma-asdk': {
Expand All @@ -21,10 +28,17 @@ module.exports = {
},
'plasma-new-hope': {
scope: [...commonScope, 'plasma-themes', 'plasma-core'],
required: ['plasma-core'],
required: ['plasma-core', 'core-themes', 'plasma-themes'],
},
'plasma-ui': {
scope: ['plasma-icons', 'plasma-sb-utils', 'plasma-tokens', 'plasma-tokens-utils', 'plasma-core', 'plasma-typo'],
scope: [
'plasma-icons',
'plasma-sb-utils',
'plasma-tokens',
'plasma-tokens-utils',
'plasma-core',
'plasma-typo',
],
required: ['plasma-icons', 'plasma-core'],
themes: '',
},
Expand All @@ -44,22 +58,22 @@ module.exports = {
},
'sdds-serv': {
scope: [...commonScope, 'sdds-themes', 'plasma-new-hope'],
required: ['plasma-new-hope', 'plasma-core'],
required: ['plasma-new-hope', 'plasma-core', 'core-themes'],
themes: 'sdds-themes',
},
'sdds-dfa': {
scope: [...commonScope, 'sdds-themes', 'plasma-new-hope'],
required: ['plasma-core'],
required: ['plasma-core', 'core-themes'],
themes: 'sdds-themes',
},
'sdds-cs': {
scope: [...commonScope, 'sdds-themes', 'plasma-new-hope'],
required: ['plasma-core'],
required: ['plasma-core', 'core-themes'],
themes: 'sdds-themes',
},
'sdds-finportal': {
scope: [...commonScope, 'sdds-themes', 'plasma-new-hope'],
required: ['plasma-core'],
required: ['plasma-core', 'core-themes'],
themes: 'sdds-themes',
},
'sdds-insol': {
Expand Down
62 changes: 41 additions & 21 deletions .github/workflows/documentation-deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ jobs:
result.push('plasma-themes');
result.push('core-themes');
}
console.log('Result =>', result);
return `@salutejs/{${result.join(',')}}`;

- name: Lerna bootstrap
Expand All @@ -95,10 +93,10 @@ jobs:
export NODE_OPTIONS=--openssl-legacy-provider
npm run build --prefix="./website/plasma-website"
cp -R ./website/plasma-website/build/. ./s3_build/${PR_NAME}
- name: Install s3cmd
run: pip3 install s3cmd

- name: s3 Upload
run: >
s3cmd
Expand All @@ -112,7 +110,7 @@ jobs:
sync
./s3_build/${PR_NAME}/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/pr/${PR_NAME}/
deploy-artifacts:
name: Deploy artifacts
needs: [ state, deploy-website ]
Expand All @@ -130,15 +128,15 @@ jobs:
with:
show-progress: false
ref: refs/pull/${{github.event.pull_request.number}}/merge

- name: Prepare environment
uses: ./.github/actions/prepare-environment

- name: Set job environment variables
run: |
echo "SHORT_NAME=$(echo ${{ matrix.package }} | sed -r 's/plasma-//g')" >> $GITHUB_ENV
echo "HAS_PACKAGE_DOCS=$([ -d "./website/${{ matrix.package }}-docs" ] && echo true || echo false)" >> $GITHUB_ENV
- name: Get lerna scope
id: lerna-scope
uses: actions/github-script@v7
Expand All @@ -149,29 +147,35 @@ jobs:
result-encoding: string
script: |
const getLernaScope = require('./.github/get-lerna-scope.js');
return getLernaScope();
- name: Lerna bootstrap
run: npx lerna bootstrap --scope="${{ steps.lerna-scope.outputs.result }}"

- name: Prepare directory
run: mkdir -p s3_build/${PR_NAME}

- name: Build documentation - "${{ matrix.package }}"
if: ${{ fromJSON(env.HAS_PACKAGE_DOCS) }}
run: |
npm run build --prefix="./website/${{ matrix.package }}-docs" -- --no-minify
cp -R ./website/${{ matrix.package }}-docs/build ./s3_build/${PR_NAME}/${{ env.SHORT_NAME }}
- name: Build storybook - "${{ matrix.package }}"
run: |
npm run storybook:build --prefix="./packages/${{ matrix.package }}"
cp -R ./packages/${{ matrix.package }}/build-sb ./s3_build/${PR_NAME}/${{ env.SHORT_NAME }}-storybook
- name: Build storybook by draft components - "${{ matrix.package }}"
if: false
run: |
npm run storybook:build:draft --prefix="./packages/${{ matrix.package }}"
cp -R ./packages/${{ matrix.package }}/build-sb-draft ./s3_build/${PR_NAME}/${{ env.SHORT_NAME }}-draft-storybook
- name: Install s3cmd
run: pip3 install s3cmd

- name: s3 upload docs
if: ${{ fromJSON(env.HAS_PACKAGE_DOCS) }}
run: >
Expand All @@ -187,7 +191,23 @@ jobs:
sync
./s3_build/${PR_NAME}/${{ env.SHORT_NAME }}/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/pr/${PR_NAME}/${{ env.SHORT_NAME }}/
- name: s3 upload storybook by draft components
if: false
run: >
s3cmd
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }}
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
--host ${{ secrets.AWS_ENDPOINT }}
--host-bucket ${{ secrets.AWS_ENDPOINT }}
--bucket-location ${{ secrets.AWS_REGION }}
--signature-v2
--delete-removed
--no-mime-magic
sync
./s3_build/${PR_NAME}/${{ env.SHORT_NAME }}-draft-storybook/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/pr/${PR_NAME}/${{ env.SHORT_NAME }}-draft-storybook/
- name: s3 upload storybook
run: >
s3cmd
Expand All @@ -202,7 +222,7 @@ jobs:
sync
./s3_build/${PR_NAME}/${{ env.SHORT_NAME }}-storybook/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/pr/${PR_NAME}/${{ env.SHORT_NAME }}-storybook/
attache-comment:
name: Attached comment
needs: [ state, deploy-website, deploy-artifacts ]
Expand All @@ -213,7 +233,7 @@ jobs:
with:
ref: refs/pull/${{github.event.pull_request.number}}/merge
show-progress: false

- name: Create comment
id: comment-link
uses: actions/github-script@v7
Expand All @@ -224,9 +244,9 @@ jobs:
result-encoding: string
script: |
const createLinks = require('./.github/create-links.js');
return createLinks();
- name: Attach comment
uses: marocchino/sticky-pull-request-comment@v2
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/documentation-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,36 +45,43 @@ jobs:
- name: Plasma UI Docs
run: |
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/plasma-ui-docs"
cp -R ./website/plasma-ui-docs/build ./s3_build/next-${{ github.sha }}/ui
- name: Plasma Web Docs
run: |
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/plasma-web-docs"
cp -R ./website/plasma-web-docs/build ./s3_build/next-${{ github.sha }}/web
- name: Plasma B2C Docs
run: |
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/plasma-b2c-docs"
cp -R ./website/plasma-b2c-docs/build ./s3_build/next-${{ github.sha }}/b2c
- name: SDDS-SERV Docs
run: |
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/sdds-serv-docs"
cp -R ./website/sdds-serv-docs/build ./s3_build/next-${{ github.sha }}/sdds-serv
- name: SDDS-CS Docs
run: |
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/sdds-cs-docs"
cp -R ./website/sdds-cs-docs/build ./s3_build/next-${{ github.sha }}/sdds-cs
- name: SDDS-DFA Docs
run: |
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/sdds-dfa-docs"
cp -R ./website/sdds-dfa-docs/build ./s3_build/next-${{ github.sha }}/sdds-dfa
- name: SDDS-INSOL Docs
run: |
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/sdds-insol-docs"
cp -R ./website/sdds-insol-docs/build ./s3_build/next-${{ github.sha }}/sdds-insol
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/documentation-deploy-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ jobs:
export NODE_OPTIONS=--openssl-legacy-provider
npm run build --prefix="./website/plasma-website"
cp -R ./website/plasma-website/build/. ./s3_build/${PR_NAME}
- name: Plasma UI Docs
run: |
export NODE_OPTIONS=--openssl-legacy-provider
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/plasma-ui-docs"
cp -R ./website/plasma-ui-docs/build ./s3_build/${PR_NAME}/ui
- name: Plasma Web Docs
run: |
export NODE_OPTIONS=--openssl-legacy-provider
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/plasma-web-docs"
cp -R ./website/plasma-web-docs/build ./s3_build/${PR_NAME}/web
- name: Plasma B2C Docs
run: |
export NODE_OPTIONS=--openssl-legacy-provider
export NODE_OPTIONS="--max_old_space_size=8192 --openssl-legacy-provider"
npm run build --prefix="./website/plasma-b2c-docs"
cp -R ./website/plasma-b2c-docs/build ./s3_build/${PR_NAME}/b2c
Expand Down
Loading

0 comments on commit 2b6cea9

Please sign in to comment.