Skip to content

Sync component changes for June #32

Sync component changes for June

Sync component changes for June #32

Workflow file for this run

name: Tests
on: push
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Check out repository code
uses: actions/checkout@v4
- name: Ensure Prismatic is not mentioned in white-label docs
run: ./scripts/check-prismatic-references.sh
- name: Install dependencies
run: npm ci
- name: Check spelling
run: npm run check-spelling
- name: Check markdown formatting
run: npm run check-markdown
- name: Check code formatting
run: npm run check-js
- name: Copy example site config
run: cp -R site-config.example site-config
- name: Build docs
run: npm run build
- name: Deploy preview
run: |
./node_modules/.bin/netlify \
deploy ${PROD_FLAG} \
--dir ./build \
--no-build \
--site "${NETLIFY_SITE_ID}" \
--auth "${NETLIFY_AUTH_TOKEN}"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ vars.NETLIFY_SITE_ID }}
PROD_FLAG: ${{ github.ref == 'refs/heads/main' && '--prod' || '' }}