Skip to content

fix(deps): update all dependencies (minor) #725

fix(deps): update all dependencies (minor)

fix(deps): update all dependencies (minor) #725

Workflow file for this run

---
name: "📊 Build Performance"
# Note! you can't safely use "pull_request_target" here
# This workflow is mostly useful for "internal PRs"
# External PRs won't be able to post a PR comment
#
# See https://github.com/preactjs/compressed-size-action/issues/54
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests
on:
pull_request:
branches: [main, next]
paths:
- "crowdin.yml"
- "sidebars.js"
- "package.json"
- "pnpm-lock.yaml"
- "babel.config.js"
- "docusaurus.config.ts"
- "src/**"
- "static/**"
- "!docs/**"
- "!blog/**"
- "!i18n/**"
- "!community/**"
- "!ecosystem/**"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
env:
URL: "https://wiki.zshell.dev"
jobs:
build-size:
name: " 📊 Build Size Report"
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
checks: write # for preactjs/compressed-size-action to create and update the checks
contents: read # for actions/checkout to fetch code
pull-requests: write # for preactjs/compressed-size-action to write a PR review
issues: write # for preactjs/compressed-size-action to create comments
steps:
- name: "⤵️ Check out code from GitHub"
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- name: "📦 Setup pnpm"
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
- name: "⎔ Setup node"
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "lts/*"
cache: "pnpm"
- uses: preactjs/compressed-size-action@946a292cd35bd1088e0d7eb92b69d1a8d5b5d76a # v2
with:
install-script: "pnpm install --no-frozen-lockfile --prod --shamefully-hoist --fix-lockfile"
build-script: "build:en"
pattern: "{build/assets/js/*.js,build/assets/css/*.css,build/**/*.html,.docusaurus/globalData.json,build/blog/**/swiss-army-knife-for-zsh/*}"
exclude: "{./build/manifest.json,./build/**/*.xml,**/*.map,**/node_modules/**,build/assets/**/*.ttf}"
strip-hash: '\.([^;]\w{7})\.'
minimum-change-threshold: 30
compression: none
build-time:
name: 💹 Build Time Perf
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: "⤵️ Check out code from GitHub"
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- name: "📦 Setup pnpm"
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
- name: "⎔ Setup node"
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "lts/*"
cache: "pnpm"
- run: pnpm install --no-frozen-lockfile --prod --shamefully-hoist
# Ensure build with a cold cache does not increase too much
- name: "Build (cold cache)"
run: pnpm build:en
timeout-minutes: 8
# Ensure build with a warm cache does not increase too much
- name: "Build (warm cache)"
run: pnpm build:en
timeout-minutes: 2