diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 65e4660c8..abcaac71b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,13 +91,13 @@ jobs: - name: Prepare | Lerna Version run: yarn lerna version --yes --no-private + - name: Sizebot + run: node scripts/sizebot/createCurrentSizes.js + - name: Prepare | Build run: | yarn workspace @codesandbox/sandpack-client build:publish yarn workspace @codesandbox/sandpack-react build:publish - - name: Sizebot - run: node scripts/sizebot/createCurrentSizes.js - - name: Release | Lerna Publish run: lerna publish from-package --yes diff --git a/.github/workflows/sizebot.yml b/.github/workflows/sizebot.yml index 8ba626317..81e4e0930 100644 --- a/.github/workflows/sizebot.yml +++ b/.github/workflows/sizebot.yml @@ -1,9 +1,6 @@ name: Sizebot on: - push: - branches-ignore: - - main pull_request: types: - opened diff --git a/scripts/sizebot/index.js b/scripts/sizebot/index.js index ba5af1bf4..59774f189 100644 --- a/scripts/sizebot/index.js +++ b/scripts/sizebot/index.js @@ -133,7 +133,7 @@ ${removedFiles.join("")}${tableContent.join("")} \n\n await octokit.rest.issues.createComment({ owner, repo, - issue_number: "308", + issue_number, body: `## Size changes ${content.join("")}`,