WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

fix(dev): prime mtimes cache when starting dev server #1027

fix(dev): prime mtimes cache when starting dev server

fix(dev): prime mtimes cache when starting dev server #1027

Workflow file for this run

name: size
on:
pull_request:
branches:
- main
env:
BUNDLE_SIZE: true
permissions: {}
jobs:
# Build current and upload stats.json
# You may replace this with your own build method. All that
# is required is that the stats.json be an artifact
build-head:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: corepack enable
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: lts/*
- name: 📦 Install dependencies
run: pnpm install
- name: 🛠 Build project
run: pnpm build
- name: 💾 Save PR number
run: echo "${{ github.event.pull_request.number }}" > pr-number.txt
- name: ⏫ Upload stats.json
uses: actions/upload-artifact@v5
with:
name: head-stats
path: ./packages/*/stats.json
- name: ⏫ Upload PR number
uses: actions/upload-artifact@v5
with:
name: pr-number
path: pr-number.txt
# Build base for comparison and upload stats.json
# You may replace this with your own build method. All that
# is required is that the stats.json be an artifact
build-base:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
ref: ${{ github.base_ref }}
- run: corepack enable
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: lts/*
- name: 📦 Install dependencies
run: pnpm install
- name: 🛠 Build project
run: pnpm build
- name: ⏫ Upload stats.json
uses: actions/upload-artifact@v5
with:
name: base-stats
path: ./packages/*/stats.json