Skip to content

Commit

Permalink
Merge pull request #2 from remarkablemark/ci/size-limit
Browse files Browse the repository at this point in the history
ci(github): add size-limit workflow
  • Loading branch information
remarkablemark committed Dec 27, 2020
2 parents 65b8d95 + 56b52fe commit 8593863
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: size
on:
pull_request:
branches:
- master
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v2
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"path": "umd/mdtocs.min.js",
"limit": "500 B"
}
]
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@rollup/plugin-typescript": "^8.1.0",
"@size-limit/preset-small-lib": "^4.9.1",
"@types/jest": "^26.0.19",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
Expand All @@ -52,6 +53,7 @@
"prettier": "^2.2.1",
"rollup": "^2.35.1",
"rollup-plugin-terser": "^7.0.2",
"size-limit": "^4.9.1",
"standard-version": "^9.0.0",
"ts-jest": "^26.4.4",
"typescript": "^4.1.3"
Expand Down

0 comments on commit 8593863

Please sign in to comment.