Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into release_2024-02-14
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/documentation-main.yml
  • Loading branch information
Yakutoc committed Feb 14, 2024
2 parents 3c67c7e + 1643c32 commit 0eeeb10
Show file tree
Hide file tree
Showing 4,023 changed files with 198,579 additions and 45,892 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ examples/**
packages/plasma-asdk/*
!packages/plasma-asdk/src

packages/sdds-srvc/*
!packages/sdds-srvc/src

packages/caldera/*
!packages/caldera/src

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

packages/plasma-b2c/*
!packages/plasma-b2c/src

Expand Down
5 changes: 4 additions & 1 deletion .github/processing-scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = () => {
const HAS_PLASMA_ASDK = packagesList.includes('@salutejs/plasma-asdk');
const HAS_CALDERA = packagesList.includes('@salutejs/caldera');
const HAS_CALDERA_ONLINE = packagesList.includes('@salutejs/caldera-online');
const HAS_SDDS_SRVC = packagesList.includes('@salutejs/sdds-srvc');
const HAS_PLASMA_WEBSITE = packagesList.includes('@salutejs/plasma-website');

const HAS_DOCUMENTATION_CHANGED =
Expand All @@ -57,7 +58,8 @@ module.exports = () => {
HAS_PLASMA_TEMPLE_DOCS ||
HAS_PLASMA_ASDK ||
HAS_CALDERA ||
HAS_CALDERA_ONLINE;
HAS_CALDERA_ONLINE ||
HAS_SDDS_SRVC;

// Флаг для управления логикой "@auto-it" плагина upload-assets-extend
// Изменения в plasma-tokens или plasma-tokens-utils так же повлияют на то что в packagesList окажется plasma-tokens-native
Expand Down Expand Up @@ -97,5 +99,6 @@ module.exports = () => {
HAS_ASSETS,
HAS_CALDERA,
HAS_CALDERA_ONLINE,
HAS_SDDS_SRVC,
};
};
5 changes: 5 additions & 0 deletions .github/workflows/change-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ on:
HAS_CALDERA_ONLINE:
description: ""
value: ${{ jobs.run.outputs.HAS_CALDERA_ONLINE }}
HAS_SDDS_SRVC:
description: ""
value: ${{ jobs.run.outputs.HAS_SDDS_SRVC }}
HAS_ASSETS:
description: ""
value: ${{ jobs.run.outputs.HAS_ASSETS }}
Expand All @@ -82,6 +85,7 @@ jobs:
HAS_PLASMA_ASDK: ${{ steps.set-output.outputs.HAS_PLASMA_ASDK }}
HAS_CALDERA: ${{ steps.set-output.outputs.HAS_CALDERA }}
HAS_CALDERA_ONLINE: ${{ steps.set-output.outputs.HAS_CALDERA_ONLINE }}
HAS_SDDS_SRVC: ${{ steps.set-output.outputs.HAS_SDDS_SRVC }}
HAS_ASSETS: ${{ steps.set-output.outputs.HAS_ASSETS }}
PACKAGES_ENUMERATION: ${{ steps.set-output.outputs.PACKAGES_ENUMERATION }}

Expand Down Expand Up @@ -135,6 +139,7 @@ jobs:
echo "HAS_PLASMA_ASDK=${{ fromJSON(steps.scope.outputs.result).HAS_PLASMA_ASDK }}" >> $GITHUB_OUTPUT
echo "HAS_CALDERA=${{ fromJSON(steps.scope.outputs.result).HAS_CALDERA }}" >> $GITHUB_OUTPUT
echo "HAS_CALDERA_ONLINE=${{ fromJSON(steps.scope.outputs.result).HAS_CALDERA_ONLINE }}" >> $GITHUB_OUTPUT
echo "HAS_SDDS_SRVC=${{ fromJSON(steps.scope.outputs.result).HAS_SDDS_SRVC }}" >> $GITHUB_OUTPUT
echo "HAS_ASSETS=${{ fromJSON(steps.scope.outputs.result).HAS_ASSETS }}" >> $GITHUB_OUTPUT
echo "PACKAGES_ENUMERATION=${{ fromJSON(steps.scope.outputs.result).PACKAGES_ENUMERATION }}" >> $GITHUB_OUTPUT
10 changes: 6 additions & 4 deletions .github/workflows/cleanup-cache-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ name: Cleanup caches by a branch

on:
pull_request:
types:
- closed
branches:
- master
types: [closed]
pull_request_target:
types:
- closed
branches:
- dev
types: [closed]

jobs:
cleanup:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

- name: Create release PR
run: |
body=`# Release Notes
${{ steps.github_release.outputs.changelog }}`
gh pr create --base master --head ${{ github.ref_name }} --title "Release by ${{ env.DATE }}" --body "$body"
changelog='${{ steps.github_release.outputs.changelog }}'
gh pr create --base master --head ${{ github.ref_name }} --title "Release by ${{ env.DATE }}" --body "# Release Notes
$changelog"
219 changes: 219 additions & 0 deletions .github/workflows/documentation-deploy-stage-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
name: Deploy documentation and storybook artifacts to DEV stage

on:
workflow_dispatch:
workflow_run:
workflows: [Release RC]
types: [completed]

jobs:
deploy:
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false

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

- name: Lerna bootstrap
run: npx lerna bootstrap

- name: Prepare directories
run: |
mkdir -p s3_build s3_build_sb
- name: Plasma Website
run: |
npm run build --prefix="./website/plasma-website"
cp -R ./website/plasma-website/build ./s3_build/next-${{ github.sha }}
- name: Plasma UI Docs
run: |
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: |
npm run build --prefix="./website/plasma-web-docs"
cp -R ./website/plasma-web-docs/build ./s3_build/next-${{ github.sha }}/web
- name: Plasma UI Storybook
run: |
npm run storybook:build --prefix="./packages/plasma-ui"
cp -R ./packages/plasma-ui/build-sb ./s3_build_sb/ui-storybook
- name: Plasma Web Storybook
run: |
npm run storybook:build --prefix="./packages/plasma-web"
cp -R ./packages/plasma-web/build-sb ./s3_build_sb/web-storybook
- name: Plasma B2C Storybook
run: |
npm run storybook:build --prefix="./packages/plasma-b2c"
cp -R ./packages/plasma-b2c/build-sb ./s3_build_sb/b2c-storybook
- name: Plasma "ASDK" Storybook
run: |
npm run storybook:build --prefix="./packages/plasma-asdk"
cp -R ./packages/plasma-asdk/build-sb ./s3_build_sb/asdk-storybook
- name: Plasma "New-hope" Storybook
run: |
npm run storybook:build --prefix="./packages/plasma-new-hope"
cp -R ./packages/plasma-new-hope/build-sb ./s3_build_sb/new-hope-storybook
- name: Plasma "Caldera" Storybook
run: |
npm run storybook:build --prefix="./packages/caldera"
cp -R ./packages/caldera/build-sb ./s3_build_sb/caldera-storybook
- name: Plasma "Caldera-online" Storybook
run: |
npm run storybook:build --prefix="./packages/caldera-online"
cp -R ./packages/caldera-online/build-sb ./s3_build_sb/caldera-online-storybook
- name: Plasma "SDDS SRVC" Storybook
run: |
npm run storybook:build --prefix="./packages/sdds-srvc"
cp -R ./packages/sdds-srvc/build-sb ./s3_build_sb/sdds-srvc-storybook
- name: Install s3cmd
run: pip3 install s3cmd

- name: Upload documentation build
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/next-${{ github.sha }}/
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/current/
- name: Upload to S3 storybook "Plasma-UI"
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_sb/ui-storybook/
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/ui-storybook/
- name: Upload to S3 storybook "Plasma-Web"
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_sb/web-storybook/
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/web-storybook/
- name: Upload to S3 storybook "Plasma-b2c"
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_sb/b2c-storybook/
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/b2c-storybook/
- name: Upload to S3 storybook "Plasma-ASDK"
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_sb/asdk-storybook/
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/asdk-storybook/
- name: Upload to S3 storybook "Plasma-New-Hope"
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_sb/new-hope-storybook/
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/new-hope-storybook/
- name: Upload to S3 storybook "Caldera"
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_sb/caldera-storybook/
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/caldera-storybook/
- name: Upload to S3 storybook "Caldera-online"
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_sb/caldera-online-storybook/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/caldera-online-storybook/
- name: Upload to S3 storybook "SDDS SRVC"
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_sb/sdds-srvc-storybook/
s3://${{ secrets.AWS_S3_BUCKET_DEV_STAGE }}/sdds-srvc-storybook/
60 changes: 60 additions & 0 deletions .github/workflows/documentation-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@ jobs:
npm run storybook:build --prefix="./packages/plasma-new-hope"
cp -R ./packages/plasma-new-hope/build-sb ./s3_build_sb/new-hope-storybook
- name: Plasma "Caldera" Storybook
run: |
npm run storybook:build --prefix="./packages/caldera"
cp -R ./packages/caldera/build-sb ./s3_build_sb/caldera-storybook
- name: Plasma "Caldera-online" Storybook
run: |
npm run storybook:build --prefix="./packages/caldera-online"
cp -R ./packages/caldera-online/build-sb ./s3_build_sb/caldera-online-storybook
- name: Plasma "SDDS SRVC" Storybook
run: |
npm run storybook:build --prefix="./packages/sdds-srvc"
cp -R ./packages/sdds-srvc/build-sb ./s3_build_sb/sdds-srvc-storybook
- name: Plasma Temple Storybook
run: |
npm run storybook:build --prefix="./packages/plasma-temple"
Expand Down Expand Up @@ -185,3 +200,48 @@ jobs:
sync
./s3_build_sb/new-hope-storybook/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/new-hope-storybook/
- name: Upload to S3 storybook "Caldera"
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_sb/caldera-storybook/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/caldera-storybook/
- name: Upload to S3 storybook "Caldera-online"
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_sb/caldera-online-storybook/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/caldera-online-storybook/
- name: Upload to S3 storybook "SDDS SRVC"
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_sb/sdds-srvc-storybook/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/sdds-srvc-storybook/
Loading

0 comments on commit 0eeeb10

Please sign in to comment.