diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index f237ef40..fd627574 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -1,23 +1,23 @@ name: Compressed Size -on: [push] +on: [pull_request] jobs: - runner-job: - runs-on: ubuntu-latest + runner-job: + runs-on: ubuntu-latest - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: 16 - - name: Install pnpm - run: npm install -g pnpm - - name: Install packages - run: pnpm install - - name: Check compressed size - uses: preactjs/compressed-size-action@v2 - with: - build-script: "production" - pattern: "./lib/**/*.js" + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Install pnpm + run: npm install -g pnpm + - name: Install packages + run: pnpm install + - name: Check compressed size + uses: preactjs/compressed-size-action@v2 + with: + build-script: "production" + pattern: "./lib/**/*.js"