Skip to content

Commit

Permalink
ci(workflows): [ci] add jobs.build.steps.pkg-size-report
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Mar 28, 2023
1 parent 8061fee commit b193660
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ jobs:
- id: typecheck
name: Run typecheck
run: yarn check:types:build
- id: pkg-size-report
name: Package size report
run: yarn pkg-size
- id: archive
name: Archive production artifacts
uses: actions/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"type": "module",
"files": [
"CHANGELOG.md",
"dist",
"src"
],
Expand Down Expand Up @@ -64,6 +65,7 @@
"fix:dedupe": "yarn dedupe --strategy=highest",
"fix:format": "prettier --cache --write .",
"fix:lint": "yarn check:lint --cache --fix",
"pkg-size": "pkg-size --sizes size --sort-by name",
"postinstall": "[ -f ./node_modules/.bin/husky ] && chmod +x .husky/* && husky install || exit 0",
"postpack": "toggle-scripts +postinstall",
"postpublish": "toggle-scripts +prepack",
Expand Down Expand Up @@ -164,6 +166,7 @@
"memfs": "3.4.13",
"mri": "1.2.0",
"node-notifier": "10.0.1",
"pkg-size": "2.4.0",
"prettier": "2.8.7",
"prettier-plugin-sh": "0.12.8",
"pretty-format": "29.5.0",
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,7 @@ __metadata:
merge-anything: "npm:5.1.4"
mri: "npm:1.2.0"
node-notifier: "npm:10.0.1"
pkg-size: "npm:2.4.0"
prettier: "npm:2.8.7"
prettier-plugin-sh: "npm:0.12.8"
pretty-bytes: "npm:6.1.0"
Expand Down Expand Up @@ -7160,6 +7161,15 @@ __metadata:
languageName: node
linkType: hard

"pkg-size@npm:2.4.0":
version: 2.4.0
resolution: "pkg-size@npm:2.4.0"
bin:
pkg-size: bin/cli.js
checksum: 808b43d08eb99ce4006fb63446bd15c3bde3a1fdb5d367caf304f46fc19f23a69af7f623419fd1d863d8b9c4b687d4beac5c385b7c1a9ea7edc3ec999c2ce2e1
languageName: node
linkType: hard

"pkg-types@npm:^1.0.1":
version: 1.0.1
resolution: "pkg-types@npm:1.0.1"
Expand Down

0 comments on commit b193660

Please sign in to comment.