Visitar URL original
perf(core): drop unevaluable media scopes and read device state lazily · NativeScript/NativeScript@a243425 · GitHub
Skip to content

perf(core): cache media query matches between device changes #205

perf(core): cache media query matches between device changes

perf(core): cache media query matches between device changes #205

name: Preview release
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
env:
NX_BRANCH: ${{ github.event.number || github.ref_name }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
preview:
name: Publish preview packages (pkg.pr.new)
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build packages
run: npx nx run-many -t build -p core,webpack5,vite
- name: Publish preview packages
run: npx pkg-pr-new publish --compact ./dist/packages/core ./dist/packages/webpack5 ./dist/packages/vite