Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release by 24.01.2024 #327

Closed
wants to merge 155 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
27aa6e6
feat: add 1
Yakutoc Dec 14, 2023
42d9d0d
Update versions
Yakutoc Dec 14, 2023
7165d11
Update package-locks files
Yakutoc Dec 14, 2023
857152f
ci: status [no ci]
Yakutoc Dec 14, 2023
0be4654
feat: add 2
Yakutoc Dec 14, 2023
badfed1
Update versions
Yakutoc Dec 14, 2023
43cb653
Update package-locks files
Yakutoc Dec 14, 2023
c5c982e
ci: status [no ci]
Yakutoc Dec 14, 2023
bd48755
ci: status 1 [no ci]
Yakutoc Dec 14, 2023
8f8a05a
ci: status 1 [no ci]
Yakutoc Dec 14, 2023
97a1d2f
ci: status 1 [no ci]
Yakutoc Dec 14, 2023
e50883a
ci: notify 1 [no ci]
Yakutoc Dec 14, 2023
aef8b17
ci: notify 1 [no ci]
Yakutoc Dec 14, 2023
00e201c
ci: notify 1 [no ci]
Yakutoc Dec 14, 2023
9757647
ci: notify 1 [no ci]
Yakutoc Dec 14, 2023
7cfedb7
ci: notify 1 [no ci]
Yakutoc Dec 14, 2023
b0f25a0
ci: notify 1 [no ci]
Yakutoc Dec 14, 2023
17e9a72
ci: notify 1 [no ci]
Yakutoc Dec 14, 2023
006b837
ci: notify 1 [no ci]
Yakutoc Dec 14, 2023
13cbee1
ci: notify 1 [no ci]
Yakutoc Dec 15, 2023
e631cb6
ci: notify 1 [no ci]
Yakutoc Dec 15, 2023
de5f730
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
f58787b
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
dfd9478
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
b1006b2
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
d3b5d90
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
fd33375
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
d87336f
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
97b32df
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
8dbe293
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
f7cab71
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
204b12a
ci: notify 2 [no ci]
Yakutoc Dec 15, 2023
a48549d
ci: notify 3 [no ci]
Yakutoc Dec 15, 2023
00a1505
ci: notify 3 [no ci]
Yakutoc Dec 15, 2023
ba68ac5
ci: notify 3 [no ci]
Yakutoc Dec 15, 2023
4b2c7ab
ci: notify 3 [no ci]
Yakutoc Dec 15, 2023
571eed7
ci: notify 3 [no ci]
Yakutoc Dec 15, 2023
c3cc1d9
ci: notify 3 [no ci]
Yakutoc Dec 15, 2023
e27ab37
ci: notify 4 [no ci]
Yakutoc Dec 19, 2023
b0be4b2
ci: notify 4 [no ci]
Yakutoc Dec 19, 2023
ca44796
ci: notify 4 [no ci]
Yakutoc Dec 19, 2023
30b6675
ci: notify 4 [no ci]
Yakutoc Dec 19, 2023
5480631
ci: notify 4 [no ci]
Yakutoc Dec 19, 2023
33d3b39
ci: notify 4 [no ci]
Yakutoc Dec 19, 2023
2eeda42
ci: notify 5 [no ci]
Yakutoc Dec 19, 2023
da08ecd
ci: notify 5 [no ci]
Yakutoc Dec 19, 2023
27495a5
ci: notify 6-6 [no ci]
Yakutoc Dec 19, 2023
855273e
ci: notify 6-6 [no ci]
Yakutoc Dec 19, 2023
a31dc04
ci: notify 6-7 [no ci]
Yakutoc Dec 19, 2023
6299091
ci: delete status commit [no ci]
Yakutoc Dec 19, 2023
f71bd53
feat: add 3
Yakutoc Dec 14, 2023
07c3f3a
Update versions
Yakutoc Dec 19, 2023
47f2531
Update package-locks files
Yakutoc Dec 19, 2023
711acfb
ci: 1 [no ci]
Yakutoc Dec 19, 2023
b2c92ae
feat: add 1
Yakutoc Dec 19, 2023
28ebcc6
Update versions
Yakutoc Dec 19, 2023
43d2a95
Update package-locks files
Yakutoc Dec 19, 2023
0198170
ci: 1 [no ci]
Yakutoc Dec 19, 2023
a36f0ef
feat: add 1
Yakutoc Dec 19, 2023
f820838
Update versions
Yakutoc Dec 19, 2023
eecb115
Update package-locks files
Yakutoc Dec 19, 2023
8b43895
ci: 1 [no ci]
Yakutoc Dec 19, 2023
c19b276
feat: Add new hope desc
Yakutoc Dec 19, 2023
0edca07
ci: 1 [no ci]
Yakutoc Dec 19, 2023
71dc4cb
ci: 1 [no ci]
Yakutoc Dec 19, 2023
68ebebe
feat: Add new hope desc
Yakutoc Dec 19, 2023
c229717
ci: 1 [no ci]
Yakutoc Dec 20, 2023
6496a54
ci: 1 [no ci]
Yakutoc Dec 20, 2023
b73be87
feat: Add new hope desc
Yakutoc Dec 20, 2023
2668286
Update versions
Yakutoc Dec 20, 2023
04ca469
Update package-locks files
Yakutoc Dec 20, 2023
add039d
ci: 1 [no ci]
Yakutoc Dec 20, 2023
eec18e0
fix: Add new hope desc
Yakutoc Dec 20, 2023
281088f
Update versions
Yakutoc Dec 20, 2023
853e1da
Update package-locks files
Yakutoc Dec 20, 2023
68bf734
fix: Add new hope desc
Yakutoc Dec 20, 2023
bb0e2a5
Merge remote-tracking branch 'origin/dev' into dev
Yakutoc Dec 20, 2023
e273774
ci: 1 [no ci]
Yakutoc Dec 20, 2023
f3a5d33
ci: 1 [no ci]
Yakutoc Dec 20, 2023
71e93d4
fix: Add new hope desc
Yakutoc Dec 20, 2023
c42de06
Update versions
Yakutoc Dec 20, 2023
40dbfad
ci: 1 [no ci]
Yakutoc Dec 20, 2023
c2d4327
Update package-locks files
Yakutoc Dec 20, 2023
bbd7d06
Merge remote-tracking branch 'origin/dev' into dev
Yakutoc Dec 20, 2023
f0cdbd9
ci: 1 [no ci]
Yakutoc Dec 20, 2023
7b6ee30
Merge remote-tracking branch 'origin/dev' into dev
Yakutoc Dec 20, 2023
478a9ed
feat: Add new hope desc
Yakutoc Dec 20, 2023
8c7b763
Update versions
Yakutoc Dec 20, 2023
f63b2b0
Update package-locks files
Yakutoc Dec 20, 2023
ad885dc
ci: 1 [no ci]
Yakutoc Dec 20, 2023
d1c236f
ci: 1 [no ci]
Yakutoc Dec 20, 2023
6b491eb
feat: Add new hope desc
Yakutoc Dec 20, 2023
3e15c0f
Update versions
Yakutoc Dec 21, 2023
fe83b57
Update package-locks files
Yakutoc Dec 21, 2023
4bf4253
ci: 1 [no ci]
Yakutoc Dec 21, 2023
82c0e3d
Merge remote-tracking branch 'origin/dev' into dev
Yakutoc Dec 21, 2023
abc4cc4
fix: Add new hope desc
Yakutoc Dec 21, 2023
4dcf234
Update versions
Yakutoc Dec 21, 2023
37140da
Update package-locks files
Yakutoc Dec 21, 2023
3707392
ci: 1 [no ci]
Yakutoc Dec 21, 2023
8d45aa7
fix: Add new hope desc
Yakutoc Dec 21, 2023
15a9b28
ci: 1 [no ci]
Yakutoc Dec 21, 2023
5705b3d
fix: Add new hope desc
Yakutoc Dec 21, 2023
bb755bc
Update versions
Yakutoc Dec 21, 2023
dfd7894
Update package-locks files
Yakutoc Dec 21, 2023
533a2ae
ci: 1 [no ci]
Yakutoc Dec 21, 2023
ba6a7f6
Merge remote-tracking branch 'origin/dev' into dev
Yakutoc Dec 21, 2023
7910290
fix: Add new hope desc
Yakutoc Dec 21, 2023
7619af8
Update versions
Yakutoc Dec 21, 2023
c913939
Update package-locks files
Yakutoc Dec 21, 2023
97776fd
ci: 1 [no ci]
Yakutoc Dec 21, 2023
b5d3c79
ci: 1 [no ci]
Yakutoc Dec 21, 2023
be1c50f
feat: Add new hope desc
Yakutoc Dec 21, 2023
2a177d9
Update versions
Yakutoc Dec 21, 2023
0da7a5d
Update package-locks files
Yakutoc Dec 21, 2023
2dec30f
ci: 1 [no ci] notes
Yakutoc Jan 16, 2024
e13b4f3
ci: 2-1 [no ci]
Yakutoc Jan 16, 2024
b5008a9
ci: 2-2 [no ci]
Yakutoc Jan 16, 2024
2ffe82e
feat: Add web desc
Yakutoc Jan 16, 2024
da8b6dc
ci: 2-3 [no ci]
Yakutoc Jan 16, 2024
bf293be
feat: Add web desc
Yakutoc Jan 16, 2024
e23e927
ci: 2-4 [no ci]
Yakutoc Jan 16, 2024
c765360
feat: Add web desc
Yakutoc Jan 16, 2024
7901ded
ci: 2-5 [no ci]
Yakutoc Jan 16, 2024
e94b7e1
feat: Add web desc
Yakutoc Jan 16, 2024
f78cda1
ci: 5-1 [no ci]
Yakutoc Jan 22, 2024
453125a
ci: 5-2 [no ci]
Yakutoc Jan 22, 2024
61ef239
ci: 5-3 [no ci]
Yakutoc Jan 22, 2024
0d2d9b9
ci: 5-4 [no ci]
Yakutoc Jan 22, 2024
a2e2a7b
ci: 6-1 [no ci]
Yakutoc Jan 24, 2024
d5cdbab
ci: 6-2 [no ci]
Yakutoc Jan 24, 2024
b52c9fe
ci: 6-3 [no ci]
Yakutoc Jan 24, 2024
14b3d38
ci: 6-4 [no ci]
Yakutoc Jan 24, 2024
2165e68
ci: 6-5 [no ci]
Yakutoc Jan 24, 2024
c990ff5
ci: 6-6 [no ci]
Yakutoc Jan 24, 2024
b4b2268
ci: 6-7 [no ci]
Yakutoc Jan 24, 2024
fcb858c
ci: 6-8 [no ci]
Yakutoc Jan 24, 2024
ae5f5e0
ci: 6-9 [no ci]
Yakutoc Jan 24, 2024
c6b9d4b
ci: 6-10 [no ci]
Yakutoc Jan 24, 2024
2acc11c
ci: 6-11 [no ci]
Yakutoc Jan 24, 2024
47e601c
ci: 6-12 [no ci]
Yakutoc Jan 24, 2024
40b6da4
ci: 6-13 [no ci]
Yakutoc Jan 24, 2024
c7289b1
ci: 6-14 [no ci]
Yakutoc Jan 24, 2024
ecb1d8f
ci: 6-15 [no ci]
Yakutoc Jan 24, 2024
1c3bbed
ci: 6-16 [no ci]
Yakutoc Jan 24, 2024
9cf5548
ci: 6-17 [no ci]
Yakutoc Jan 24, 2024
8622ad6
ci: 6-18 [no ci]
Yakutoc Jan 24, 2024
a586b46
ci: 6-19 [no ci]
Yakutoc Jan 24, 2024
d186c5a
ci: 6-20 [no ci]
Yakutoc Jan 24, 2024
95c2a46
ci: 6-21 [no ci]
Yakutoc Jan 24, 2024
ed8a33f
ci: 6-22 [no ci]
Yakutoc Jan 24, 2024
ee39d34
ci: 6-23 [no ci]
Yakutoc Jan 24, 2024
7d69260
ci: 6-24 [no ci]
Yakutoc Jan 24, 2024
25911af
ci: 6-25 [no ci]
Yakutoc Jan 24, 2024
48c56f4
ci: 6-26 [no ci]
Yakutoc Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ jobs:
run: npx lerna bootstrap

- name: Lint
run: npm run lint
run: |
npm run lint
13 changes: 8 additions & 5 deletions .github/workflows/notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ jobs:

- name: Create "changelog_artifacts.md"
run: |
cat > ${{ github.workspace }}/changelog_artifacts.md << EOL
cat > ${{ github.workspace }}/changelog_artifacts.md <<'EOF'
${{ steps.github_release.outputs.changelog }}
EOL

- name: Lint
run: |
sed -i -E 's|(<img [^>]*[^/])>|\1/>|' ${{ github.workspace }}/changelog_artifacts.md

- name: Upload "changelog_artifacts.md"
uses: actions/upload-artifact@master
Expand All @@ -51,6 +54,6 @@ jobs:

- name: Create release PR
run: |
gh pr create --base main --head dev --title "Release by ${{ env.DATE }}" --body '# Release Notes
${{ steps.github_release.outputs.changelog }}'

body="# Release Notes\\n$(cat ${{ github.workspace }}/changelog_artifacts.md)"
gh pr create --base main --head dev --title "Release by ${{ env.DATE }}" --body "$body"
54 changes: 54 additions & 0 deletions .github/workflows/publish-blank-mq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Release

on:
merge_group:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false

- name: One
id: pr_state
uses: actions/github-script@v6
with:
script: |
console.log(context);
console.log(context.repo.owner);
console.log(context.repo.repo);

const teammate = {
Yakutoc: "alex_czech",
'neretin-trike': "aaneretin",
'Yeti-or': "yeti-or",
TitanKuzmich: "aakrivonos",
kayman233: "ivakudryavtsev",
};

const res = await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.payload.merge_group.head_sha,
owner: context.repo.owner,
repo: context.repo.repo,
});

console.log(res);

const { title, user: { login = "alex_czech" } } = res?.data[0] || {};

return { pr: title, user: teammate[login] || 'alex_czech' };

- name: Create the Mattermost Message
if: ${{ success() }}
run: |
title=${{ fromJSON(steps.pr_state.outputs.result).pr }}
user=${{ fromJSON(steps.pr_state.outputs.result).user }}
echo "{\"text\":\"$title - In progress\\n@user\"}" > mattermost.json

- name: Send notification
uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.WEBHOOKS_NOTIFICATIONS_MM }}
95 changes: 78 additions & 17 deletions .github/workflows/publish-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ jobs:
scope:
name: Save state
runs-on: ubuntu-latest
if: ${{ github.actor == 'github-merge-queue[bot]' }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
outputs:
HAS_ASSETS: ${{ steps.scope.outputs.result }}
PR: ${{ steps.pr_state.outputs.result }}
steps:
## Получаем состояние dev branch
- name: Checkout
Expand All @@ -30,27 +32,34 @@ jobs:
- name: Install
run: npm ci --no-audit

## Получаем base sha commit для dev из pull request который был merged и запустил это событие
## Получаем информацию о pull request
- name: One
id: base_sha
id: pr_state
uses: actions/github-script@v6
with:
script: |
script: |
const teammate = {
Yakutoc: "alex_czech",
'neretin-trike': "aaneretin",
'Yeti-or': "yeti-or",
TitanKuzmich: "aakrivonos",
kayman233: "ivakudryavtsev",
};

const res = await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
});

console.log("res >>>",res);
console.log("res >>>", res?.data[0]?.base?.sha);
const { base: { sha = context.sha }, title, user: { login } } = res?.data[0] || {};

return res?.data[0]?.base?.sha || context.sha;
return { sha, pr: title, user: teammate[login] || 'alex_czech' };

- name: Two
id: state
run: |
echo "CHANGED_STATE=$(npx lerna la --json --since=${{ steps.base_sha.outputs.result }} | jq -c)" >> "$GITHUB_OUTPUT"
echo "CHANGED_STATE=$(npx lerna la --json --since=${{ fromJSON(steps.pr_state.outputs.result).sha }} | jq -c)" >> "$GITHUB_OUTPUT"

- name: Computed scope state
id: scope
Expand All @@ -69,18 +78,70 @@ jobs:

const packagesList = changedState.map(({ name }) => name);

return packagesList.includes('plasmax-core')
return packagesList.includes('plasmax-core')

publish:
name: Publish RC version
needs: [scope]
runs-on: ubuntu-latest
if: ${{ github.actor == 'github-merge-queue[bot]' }}
uses: ./.github/workflows/publish-common.yml
with:
with-update-package-lock: true
commit-message: "Update package-locks files"
auto-options: '--no-changelog'
upload_assets: ${{ needs.scope.outputs.HAS_ASSETS == 'true' }}
secrets:
gh_token: ${{ secrets.GH_TOKEN }}
npm_registry_token: ${{ secrets.NPM_REGISTRY_TOKEN }}
steps:
- name: Failed when publish
uses: actions/github-script@v6
with:
script: |
core.setFailed('TEST')

catch:
name: Handle errors
runs-on: ubuntu-latest
needs: [publish, scope]
if: ${{ always() && contains(needs.*.result, 'failure') }}
env:
FAILED_JOB_NAME: ${{ contains(needs.scope.result, 'failure') && 'Save state' || 'Publish RC version' }}
steps:
- name: Get failed job information
id: job
uses: actions/github-script@v6
env:
RUN_ID: ${{github.run_id}}
FAILED_JOB_NAME: ${{env.FAILED_JOB_NAME}}
with:
script: |
const { RUN_ID, FAILED_JOB_NAME } = process.env;

const res = await github.rest.actions.listJobsForWorkflowRun({
run_id: RUN_ID,
owner: context.repo.owner,
repo: context.repo.repo,
});

const { data: { jobs: jobsList = [] } } = res || {};

const { html_url, steps: stepsList } = jobsList.find(({ name }) => name === FAILED_JOB_NAME) || {};

const { name } = stepsList.find(({ conclusion }) => conclusion === "failure" ) || { name: '' };

return { targetUrl: html_url, name }

- name: Create message
if: ${{ success() }}
env:
PR: ${{ fromJSON(needs.scope.outputs.PR).pr }}
USER: ${{ fromJSON(needs.scope.outputs.PR).user }}
FAILURE_STEP: ${{ fromJSON(steps.job.outputs.result).name }}
JOB: ${{ fromJSON(steps.job.outputs.result).targetUrl }}
run: |
step="**Failure step**: ${{ env.FAILURE_STEP }}"
message='@${{ env.USER }}\nПосмотри пожалуйста, упала публикация твоего pull request: [${{ env.PR }}](${{ env.JOB }})'

echo "NOTIFICATION="$step\\n$message"" >> $GITHUB_ENV

- name: Create the Mattermost Message
run: |
echo "{\"text\":\"${{env.NOTIFICATION}}\"}" > mattermost.json

- name: Send notification
uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.WEBHOOKS_NOTIFICATIONS_MM }}
29 changes: 29 additions & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Fake

on:
workflow_call:
outputs:
STATE:
description: "scope collection"
value: ${{ jobs.build.outputs.STATE }}

jobs:
build:
runs-on: ubuntu-latest
outputs:
STATE: ${{ steps.output.outputs.STATE }}
steps:
- name: Write state
id: state
uses: actions/github-script@v6
with:
script: |
return {
HAS_SCOPE: true,
HAS_DOCUMENTATION_CHANGED: false,
}

- name: Set "GITHUB_OUTPUT"
id: output
run: |
echo "STATE=${{ steps.state.outputs.result }}" >> $GITHUB_OUTPUT
19 changes: 14 additions & 5 deletions .github/workflows/status.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
name: Status

on:
- status
status:

jobs:
report:
runs-on: ubuntu-latest
steps:
- env:
DESCRIPTION: ${{ github.event.description }}
- name: Echo
run: |
echo "${{ github.event }}"
echo The status is error or failed: $DESCRIPTION
echo "${{ github.event.state }}"
echo "${{ github.event.context }}"
echo "NOTIFICATION="##### Status: ${{ github.event.state }}/\n/\n ###### Link: ${{ github.event.target_url }}" " >> "$GITHUB_ENV"

- name: Create the Mattermost Message
run: |
echo "{\"text\":\" ##### Status: ${{ github.event.state }}\\n\\n##### Description: ${{ github.event.description }}\\n\\n###### Link: ${{ github.event.target_url }}\"}" > mattermost.json

- name: Send notification
uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.WEBHOOKS_NOTIFICATIONS_MM }}
35 changes: 13 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
name: Get pull request info
name: Sharing data

on:
workflow_dispatch:

jobs:
pull-r:
write_state:
uses: ./.github/workflows/reuse.yml
secrets: inherit

read_state:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
fetch-depth: 0
needs:
- write_state

- name: WIP
id: p
uses: actions/github-script@v6
with:
script: |
console.log(context);

const res = await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
});

console.log(res);
steps:
- name: ECHO
if: ${{ fromJSON(needs.write_state.outputs.STATE).HAS_SCOPE == true }}
run: |
echo "Echo run bla-bla-bla"
4 changes: 2 additions & 2 deletions packages/core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "plasmax-core",
"version": "0.39.0",
"version": "0.40.0-dev.0",
"author": "Alex Czech1 <[email protected]>",
"description": "description ",
"description": "description",
"license": "MIT",
"scripts": {
"prepare": "npm run build",
Expand All @@ -22,4 +22,4 @@
"main": "src/index.ts",
"module": "esm/index.js",
"types": "index.d.ts"
}
}
Loading