Skip to content

stream webtorrent

stream webtorrent #141

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: setup node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
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'