Skip to content

Commit

Permalink
chore: add size limit to release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
logotip4ik committed Nov 9, 2024
1 parent e1c9225 commit c4b2ead
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ jobs:
- name: Install deps
run: yarn install && yarn nuxt prepare

- name: Run Build
run: yarn run build

- name: Run tests
run: yarn run test

- name: Run size-limit
run: yarn run size

- name: Run lint
run: yarn run lint --ignore-pattern ".github"

- name: Run Build
run: yarn run build

bump-package-version:
needs: test-lint-build
timeout-minutes: 4
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,20 @@
{
"name": "js",
"path": "./.output/public/_nuxt/*.js",
"brotli": true,
"limit": "265kb"
},
{
"name": "css",
"path": "./.output/public/_nuxt/*.css",
"brotli": true,
"limit": "16kb"
},
{
"name": "server",
"path": "./.output/server/**/*",
"brotli": false,
"limit": "10mb"
}
]
}

0 comments on commit c4b2ead

Please sign in to comment.