Skip to content

Commit

Permalink
Release by 21.08.2024 (#1382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc authored Aug 22, 2024
2 parents cae0eaa + a13fd22 commit 1e8c697
Show file tree
Hide file tree
Showing 584 changed files with 31,469 additions and 31,282 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ utils/plasma-sb-utils/src/helpers/flattenPalette.ts
utils/plasma-tokens-utils/*
!utils/plasma-tokens-utils/src

utils/plasma-tokens-native/data

scaffold
!scaffold/template-docs
!scaffold/template-component
6 changes: 0 additions & 6 deletions .github/processing-scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ module.exports = () => {
HAS_PACKAGES_CYPRESS_RUN: false,
HAS_PACKAGES_DS_CHANGES: false,
HAS_DEPLOY_WEBSITE: false,
HAS_ASSETS: false,
};
}

Expand Down Expand Up @@ -79,17 +78,12 @@ module.exports = () => {

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_ASSETS,
HAS_DEPLOY_WEBSITE,
HAS_PACKAGES_DS_CHANGES,
};
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cypress-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: ./.github/actions/prepare-environment

- name: Set default scope
run: echo "SCOPE={b2c,web,core,hope,new-hope,icons,typo,tokens,tokens-b2c,tokens-utils,tokens-native,cy-utils,ui}" >> $GITHUB_ENV
run: echo "SCOPE={b2c,web,core,hope,new-hope,icons,typo,tokens,tokens-b2c,tokens-utils,cy-utils,ui}" >> $GITHUB_ENV

- name: Install React 17
if: ${{ inputs.with-react-17 }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
uses: ./.github/workflows/publish-common.yml
with:
ref: refs/pull/${{github.event.pull_request.number}}/merge
upload_assets: ${{ fromJSON(needs.state.outputs.STATE).HAS_ASSETS }}
auto-options: '--no-changelog'
secrets:
gh_token: ${{ secrets.GH_TOKEN }}
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/publish-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ on:
type: string
description: "Manual set repo ref"
default: ''
upload_assets:
type: boolean
default: false
auto-options:
type: string
description: "@auto-it cli arguments for example --no-changelog"
Expand Down Expand Up @@ -58,14 +55,11 @@ jobs:
- name: API Report
run: npm run api:report

- name: Build "@auto-it" plugins
run: npm run auto-plugins:build

- name: Release Info
run: npm whoami && npx lerna info && npx auto info || echo 'auto info returned 1'

- name: Create Release
run: upload_assets="${{ inputs.upload_assets }}" upload_assets_targets=${{ toJSON(vars.UPLOAD_ASSETS_TARGETS) }} npm run release -- ${{ inputs.auto-options }}
run: npm run release -- ${{ inputs.auto-options }}

- name: Update package-lock files
if: ${{ inputs.with-update-package-lock }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
uses: ./.github/workflows/publish-common.yml
with:
with-update-package-lock: true
upload_assets: true
secrets:
gh_token: ${{ secrets.GH_TOKEN }}
npm_registry_token: ${{ secrets.NPM_REGISTRY_TOKEN }}
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/publish-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
outputs:
HAS_ASSETS: ${{ steps.scope.outputs.result }}
PR: ${{ steps.pull_request.outputs.result }}
steps:
## Получаем актуальное состояние dev branch
Expand Down Expand Up @@ -64,20 +63,6 @@ jobs:
SHA: ${{ fromJSON(steps.pull_request.outputs.result).sha }}
run: |
echo "RAW_DATA=$(npx lerna la --json --since=${{ env.SHA }} | jq -c)" >> "$GITHUB_OUTPUT"
## Высчитываем условие для загрузки assets
- name: Computed scope state
id: scope
uses: actions/github-script@v6
env:
RAW_DATA: ${{ steps.lerna_ls.outputs.RAW_DATA }}
with:
script: |
const processingScope = require('./.github/processing-scope.js');
const state = processingScope();
return state.HAS_ASSETS ?? false;
publish:
name: Publish RC version
Expand All @@ -87,7 +72,6 @@ jobs:
with:
with-update-package-lock: true
commit-message: "Update package-lock.json files"
upload_assets: ${{ needs.state.outputs.HAS_ASSETS == 'true' }}
auto-options: '--no-changelog'
secrets:
gh_token: ${{ secrets.GH_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ perftest
.perftool
s3_build
temp
**/.DS_Store
163 changes: 0 additions & 163 deletions auto-plugins/README.md

This file was deleted.

1 change: 0 additions & 1 deletion auto-plugins/src/index.ts

This file was deleted.

Loading

0 comments on commit 1e8c697

Please sign in to comment.