-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "github: Delete size limit action" This reverts commit 20ef56c. * dev-deps: Add @size-limit/esbuild and @size-limit/esbuild-why * Try to fix the size limit action * Use version 1.8.0 of size-limit-action * Add package_manager: pnpm to size limit config * github: Add pnpm/action-setup step to size limit action * github: Setup Node version 20 on size limit action * github: Cache pnpm modules on size limit action * github: Try using cache option of actions/node-setup * github: Use separate steps for pnpm setup and install * github: Adjust pnpm install command arguments * github: Add eslint to global option on pnpm install * github: Remove global option from pnpm install
- Loading branch information
Showing
5 changed files
with
175 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: size | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
permissions: | ||
pull-requests: write | ||
jobs: | ||
size: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI_JOB_NUMBER: 1 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.4.x | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org | ||
cache: pnpm | ||
|
||
- name: Size limit | ||
uses: andresz1/size-limit-action@v1.8.0 | ||
with: | ||
github_token: ${{ secrets.SIZE_LIMIT_GITHUB_TOKEN }} | ||
package_manager: pnpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ | |
.tap/ | ||
dist/ | ||
docs/ | ||
esbuild-why-*.html | ||
node_modules/ | ||
types/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.