-
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (49 loc) · 2.01 KB
/
Copy pathbundle-size.yml
File metadata and controls
53 lines (49 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# @Project: gitmulti
# @Filename: /.github/workflows/bundle-size.yml
# @Date: 2026-05-20T00:00:00-07:00 (1779260400)
# @Author: Nate Corcoran <CLDMV>
# @Email: <Shinrai@users.noreply.github.com>
# -----
# @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828)
# -----
# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
#
# Individual repo: .github/workflows/bundle-size.yml
#
# Only relevant for runtime libraries where bundle size matters (e.g.
# @cldmv/slothlet). Skip this template for tool repos / meta repos.
#
# Fork-PR caveat: builds PR-supplied code, so we use `pull_request`
# (NOT pull_request_target). Fork builds run safely without secrets;
# comment posting fails for fork PRs because the token is read-only.
# Maintainer can run via workflow_dispatch after reviewing the code.
#
# Batch 5.4 from tmp/plan-future-workflows.md.
name: 📊 Bundle Size
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [master, main]
workflow_dispatch:
permissions:
contents: read
pull-requests: write
jobs:
diff:
uses: CLDMV/.github/.github/workflows/reusable-bundle-size.yml@v4
with:
build_command: "npm run build:ci"
# Leading `*` is required: the measure step only walks directories, so a bare top-level filename matches nothing.
dist_paths: "*gitmulti.js"
# warning_pct: 5
# warning_bytes: 500
# comment_mode: "update"
# Optional. Without these, the size-diff comment is posted by
# github-actions[bot]. With these, it's posted by your CLDMV bot App.
# Note: fork PRs can't access org secrets, so the bot attribution only
# applies to same-repo PRs; fork PRs fall back to GITHUB_TOKEN.
secrets:
BOT_APP_CLIENT_ID: ${{ secrets.CLDMV_BOT_APP_CLIENT_ID }}
BOT_APP_PRIVATE_KEY: ${{ secrets.CLDMV_BOT_APP_PRIVATE_KEY }}