Skip to content

Commit

Permalink
ci: update params for size-limit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 24, 2024
1 parent 2862eff commit b8cffbe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
name: size
name: Size Limit

on: [pull_request]

jobs:
size:
runs-on: ubuntu-latest

env:
CI_JOB_NUMBER: 1

steps:
- uses: actions/checkout@v4
- uses: andresz1/size-limit-action@v1
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Size Limit
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
],
"license": "MIT",
"main": "dist/index.js",
"module": "dist/crestron-ch5-helper.esm.js",
"typings": "dist/index.d.ts",
"type": "module",
"repository": {
Expand Down Expand Up @@ -45,11 +44,11 @@
},
"size-limit": [
{
"path": "dist/crestron-ch5-helper.cjs.production.min.js",
"path": "dist/index.cjs",
"limit": "10 KB"
},
{
"path": "dist/crestron-ch5-helper.esm.js",
"path": "dist/index.js",
"limit": "10 KB"
}
],
Expand Down

0 comments on commit b8cffbe

Please sign in to comment.