Skip to content

chore(deps-dev): bump @types/node from 22.6.0 to 22.10.1 #333

chore(deps-dev): bump @types/node from 22.6.0 to 22.10.1

chore(deps-dev): bump @types/node from 22.6.0 to 22.10.1 #333

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
changed-files:
name: Changed Files
runs-on: ubuntu-latest
outputs:
docs-change: ${{ steps.changed-files.outputs.docs-change_any_modified == 'true' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 50 # Assume PRs are less than 50 commits
- name: Find changed files
uses: tj-actions/changed-files@v45
id: changed-files
with:
files_yaml: |
docs-change:
- .github/workflows/deploy-docs.yml
- docs/**
- package.json
- package-lock.json
vercel:
runs-on: ubuntu-latest
needs: [changed-files]
if: ${{ needs.changed-files.outputs.docs-change == 'true' }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Setup node
uses: actions/[email protected]
with:
cache: npm
- name: Build
run: |
yarn install --frozen-lockfile
npm run build
- name: Run Tests Locally
run: npm run test:docs
- name: Deploy to Staging
id: deploy-vercel-staging
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
scope: ${{ secrets.VERCEL_ORG_ID }}
- name: Deploy to Production
uses: amondnet/vercel-action@v25
id: deploy-vercel-production
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: "--prod"
scope: ${{ secrets.VERCEL_ORG_ID }}