Skip to content

try fix react strict mode #96

try fix react strict mode

try fix react strict mode #96

Workflow file for this run

name: Compressed Size
env:
NODE_OPTIONS: --max-old-space-size=6144
on:
pull_request:
types:
- 'opened'
- 'synchronize'
paths-ignore:
- '**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: latest
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-compressed-size-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-compressed-size-
- uses: preactjs/compressed-size-action@v2
with:
build-script: 'build:packs'
repo-token: '${{ secrets.GIT_HUB_TOKEN }}'
pattern: './packages/*/{dist,compiled}/**/*.{js,d.ts}'