Skip to content

Commit f3f9385

Browse files
committed
ci: size ?
1 parent d6c80b0 commit f3f9385

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches:
77
- main
8+
pull_request:
9+
branches:
10+
- main
811

912
env:
1013
CARGO_TERM_COLOR: always
@@ -72,15 +75,18 @@ jobs:
7275
name: dist
7376
path: dist/
7477
compression-level: 9
78+
- uses: preactjs/compressed-size-action@v3
7579
- name: Deploy
7680
uses: cloudflare/wrangler-action@v3
7781
with:
7882
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
7983
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
84+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
8085

8186
- run: |
8287
pnpm run fastly:deploy
8388
pnpm run fastly:publish
8489
working-directory: compute-js
8590
env:
8691
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
92+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)