Skip to content

feat: apply the 2026 brand to the Phoenix docs #22129

feat: apply the 2026 brand to the Phoenix docs

feat: apply the 2026 brand to the Phoenix docs #22129

name: Publish Any Pull Request
permissions:
contents: read
pull-requests: read
# TODO: Only publish on pull requests by arize team members
on:
pull_request:
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
packages: ${{ steps.filter.outputs.packages }}
steps:
# No checkout needed: paths-filter reads the PR's changed files from the API.
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter
with:
# Every publishable package is released together (see the Publish step),
# so a change to any one of them - or to this workflow - triggers the run.
filters: |
packages:
- 'js/packages/**'
- 'js/pnpm-lock.yaml'
- 'js/pnpm-workspace.yaml'
- '.github/workflows/typescript-packages-publish-experimental.yml'
publish-experimental-packages:
needs: changes
if: ${{ needs.changes.outputs.packages == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # pkg-pr-new comments preview install URLs on the PR
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
# workaround for broken corepack https://github.com/nodejs/corepack/issues/612
- run: |
npm i -g corepack@latest
corepack enable
working-directory: ./js
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: ./js/pnpm-lock.yaml
- name: Install dependencies
working-directory: ./js
run: pnpm install
# Only the publishable packages are needed; the examples/apps and benchmarks
# workspaces are private and their build output is discarded.
- name: Build
working-directory: ./js
run: pnpm --filter './packages/*' build
# pkg-pr-new only rewrites a `workspace:*` dependency into a preview URL when the
# depended-on package is part of the SAME publish invocation. Anything left out ships
# a literal `workspace:*` in its package.json, which npm/npx reject with
# `Unsupported URL Type "workspace:"`. Publishing the whole glob keeps every internal
# dependency resolvable; pkg-pr-new skips any package marked private.
- name: Publish
working-directory: ./js
run: pnpx pkg-pr-new publish --pnpm ./packages/*