diff --git a/.github/workflows/compressed-size-action.yml b/.github/workflows/compressed-size-action.yml index c4375a92..dfce78f1 100644 --- a/.github/workflows/compressed-size-action.yml +++ b/.github/workflows/compressed-size-action.yml @@ -1,12 +1,10 @@ name: Compressed Size -on: [ pull_request ] +on: [pull_request] jobs: build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 @@ -17,4 +15,4 @@ jobs: cache-dependency-path: '**/pnpm-lock.yaml' - uses: preactjs/compressed-size-action@v2 with: - pattern: "./dist/**/*.{js,mjs}" + pattern: './dist/**/*.{js,mjs}' diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index 16fd855f..23a21dde 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -1,24 +1,17 @@ name: Publish Any Commit + on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - + - uses: actions/checkout@v4 - run: corepack enable - uses: actions/setup-node@v4 with: node-version: 20 cache: 'pnpm' - - - name: Install dependencies - run: pnpm install - - - name: Build - run: pnpm build - + - run: pnpm install + - run: pnpm build - run: pnpx pkg-pr-new publish './dist' --compact --template './examples/*'