-
Notifications
You must be signed in to change notification settings - Fork 151
34 lines (27 loc) · 1.02 KB
/
size.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Compressed Size
on: [pull_request]
env: # Set environment variables for every job and step in this workflow
CLICOLOR: "1" # Enable colors for *NIX commands
PY_COLORS: "1" # Enable colors for Python-based utilities
FORCE_COLOR: "1" # Force colors in the terminal
permissions:
contents: read
jobs:
build:
permissions:
checks: write # for preactjs/compressed-size-action to create and update the checks
contents: read # for actions/checkout to fetch code
issues: write # for preactjs/compressed-size-action to create comments
pull-requests: write # for preactjs/compressed-size-action to write a PR review
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node
uses: ./.github/actions/node
- uses: actions/checkout@v4
- uses: preactjs/compressed-size-action@v2
with:
build-script: build-ci
repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: "packages/orbit-components/lib/**/*.js"