Skip to content

Commit

Permalink
Try edit last.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Oct 29, 2024
1 parent 218b00a commit 3fa30fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
if: github.event_name == 'pull_request'
run: sudo apt-get update && sudo apt-get install brotli
- name: Check Package Size
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && matrix.version == '21'
env:
PR_NUMBER: ${{ github.event.number }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
brotli packages/sdk/browser/dist/index.js
export PR_SIZE=$(stat -c %s packages/sdk/browser/dist/index.js.br)
gh pr comment $PR_NUMBER -b "`@launchdarkly/js-client-sdk` size: $PR_SIZE"
gh pr comment --edit-last $PR_NUMBER -b "@launchdarkly/js-client-sdk: $PR_SIZE"
[ $PR_SIZE -le 25000 ] || exit 1

0 comments on commit 3fa30fe

Please sign in to comment.