Skip to content

Bump mermaid from 11.16.0 to 12.0.0 in the dev-dependencies group across 1 directory #428

Bump mermaid from 11.16.0 to 12.0.0 in the dev-dependencies group across 1 directory

Bump mermaid from 11.16.0 to 12.0.0 in the dev-dependencies group across 1 directory #428

Workflow file for this run

# When a PR get labelled "preview", deploy a web rendering of the changes via pushpreview

Check warning on line 1 in .github/workflows/pushpreview.yml

View workflow run for this annotation

GitHub Actions / PushPreview

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
name: PushPreview
on:
pull_request_target:
types:
- labeled
jobs:
preview:
runs-on: ubuntu-24.04
if: github.event.label.name == 'preview'
permissions:
pull-requests: write # Ensure permission to add comments
contents: read # Default for reading the repository contents
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: ${{ github.head_ref }}
- name: Comment
run: |
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 21
- name: Use yarn 4.12
run: |
corepack enable
corepack prepare yarn@4.12.0 --activate
- name: Set BASE_URL
run: echo "BASE_URL=/github/${{ github.repository }}/${{ github.event.number }}/" >> $GITHUB_ENV
- name: Build site
run: |
yarn install --immutable
yarn build
- name: Generate preview
uses: TechDocsStudio/pushpreview-action@cf958f7be2bf55d3f56d351bb9abf56b4c6b9a50 # 1.0.6
with:
source-directory: ./build
github-token: ${{ secrets.GITHUB_TOKEN }}
pushpreview-token: ${{ secrets.PUSHPREVIEW_TOKEN }}