From 9e3f5f2c4885ae5fd6bb9ce8c872939e781397b3 Mon Sep 17 00:00:00 2001 From: sahejkm Date: Thu, 30 May 2024 11:25:44 +0800 Subject: [PATCH 1/6] Remove measuring running time as its not giving any meaningful info --- .size-limit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.size-limit.js b/.size-limit.js index fdb185b3990..3789b3d2d85 100644 --- a/.size-limit.js +++ b/.size-limit.js @@ -49,6 +49,7 @@ function sizeLimitConfig(pkg) { return { path: alias[pkg], modifyWebpackConfig, + running: false, }; } From 2d15db0215f2f8c458fe56ac54162866e3f1aa37 Mon Sep 17 00:00:00 2001 From: sahejkm Date: Thu, 30 May 2024 11:39:49 +0800 Subject: [PATCH 2/6] . --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index be73460e4c8..772d2c9e9c7 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "postversion": "git checkout -b ${npm_package_version}__release && npm run update-version && npm install && npm run update-packages && npm run extract-codes && npm run update-changelog && git add -A && git commit -m v${npm_package_version} && git tag -a v${npm_package_version} -m v${npm_package_version}", "publish-extension": "npm run zip -w @lexical/devtools && npm run publish -w @lexical/devtools", "release": "npm run prepare-release && node ./scripts/npm/release.js", - "size": "npm run build-prod && size-limit" + "size": "npm run build && size-limit" }, "devDependencies": { "@ampproject/rollup-plugin-closure-compiler": "^0.27.0", From 900482f47de04174ddcaf24fc830b7555701d0ac Mon Sep 17 00:00:00 2001 From: sahejkm Date: Thu, 30 May 2024 11:40:45 +0800 Subject: [PATCH 3/6] . --- .github/workflows/size-limit.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 9b5250a43a3..35467b538d8 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -1,6 +1,5 @@ name: 'Bundles' on: - pull_request: pull_request_target: branches: - main From 4bd15228fe9688d2ad6e0ce07b2564882c955f4c Mon Sep 17 00:00:00 2001 From: sahejkm Date: Thu, 30 May 2024 11:43:39 +0800 Subject: [PATCH 4/6] testing --- .github/workflows/size-limit.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 35467b538d8..89efb041dcb 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -1,8 +1,7 @@ name: 'Bundles' on: - pull_request_target: - branches: - - main + pull_request: + jobs: size-limit: runs-on: ubuntu-latest From 616f6ffa8ef3fa9f2704b65909de5311a4b3823e Mon Sep 17 00:00:00 2001 From: sahejkm Date: Thu, 30 May 2024 11:51:12 +0800 Subject: [PATCH 5/6] remove duplicate triggers for size-limit action job --- .github/workflows/size-limit.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 89efb041dcb..35467b538d8 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -1,7 +1,8 @@ name: 'Bundles' on: - pull_request: - + pull_request_target: + branches: + - main jobs: size-limit: runs-on: ubuntu-latest From e51e86bbfafa91636ab5e1cc6eb09716e4a45d0a Mon Sep 17 00:00:00 2001 From: sahejkm Date: Thu, 30 May 2024 11:56:34 +0800 Subject: [PATCH 6/6] . --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 772d2c9e9c7..be73460e4c8 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "postversion": "git checkout -b ${npm_package_version}__release && npm run update-version && npm install && npm run update-packages && npm run extract-codes && npm run update-changelog && git add -A && git commit -m v${npm_package_version} && git tag -a v${npm_package_version} -m v${npm_package_version}", "publish-extension": "npm run zip -w @lexical/devtools && npm run publish -w @lexical/devtools", "release": "npm run prepare-release && node ./scripts/npm/release.js", - "size": "npm run build && size-limit" + "size": "npm run build-prod && size-limit" }, "devDependencies": { "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",