Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ name: ci
on:
pull_request:
branches:
- redesign
- gh-pages
- main
pull_request_review:
types: [submitted]
push:
branches:
- redesign
- gh-pages
- main

# Cancel in progress workflows
# in the scenario where we already had a run going for that PR/branch/tag but then triggered a new run
Expand Down Expand Up @@ -38,9 +36,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
# node-version-file: ".nvmrc" use when .nvmrc is on root of the repo
node-version: '24.13'
# cache: "npm" use when package-lock.json is on root of the repo
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install Node.js dependencies
run: npm ci
Expand Down Expand Up @@ -98,6 +95,7 @@ jobs:
--root-dir $PWD/dist
--exclude-path dist/llms.txt
--exclude-path dist/llms/
--exclude-private
--remap "https://expressjs\.com\/((?:[^\/]+\/)*[^\/\.]+)\/?$ file://$PWD/dist/\$1/index.html"
--remap "https://expressjs\.com\/(.*\.html)$ file://$PWD/dist/\$1"
dist/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: 'CodeQL'

on:
push:
branches: ['gh-pages']
branches: ['main']
pull_request:
# The branches below must be a subset of the branches above
branches: ['gh-pages']
branches: ['main']
schedule:
- cron: '0 0 * * 1'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Crowdin Upload

on:
push:
branches: [gh-pages]
branches: [main]
workflow_dispatch:

permissions:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Website
on:
push:
branches:
- gh-pages
- main
workflow_dispatch:

permissions:
Expand All @@ -29,6 +29,9 @@ jobs:
path: .
package-manager: npm
out-dir: dist
env:
PUBLIC_ORAMA_PROJECT_ID: ${{ secrets.PUBLIC_ORAMA_PRODUCTION_PROJECT_ID }}
PUBLIC_ORAMA_API_KEY: ${{ secrets.PUBLIC_ORAMA_PRODUCTION_API_KEY }}

deploy:
name: deploy
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Playwright Tests
on:
pull_request:
branches:
- redesign
- gh-pages
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -26,7 +25,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '24.13'
node-version-file: '.nvmrc'
cache: 'npm'

- name: Wait for Netlify preview
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
schedule:
- cron: '20 7 * * 2'
push:
branches: ['gh-pages']
branches: ['main']

# Declare default permissions as read only.
permissions: read-all
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/sync-orama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ on:
workflow_dispatch:
push:
branches:
- redesign
- gh-pages
- main
pull_request:
branches:
- redesign
- gh-pages
- main

permissions:
contents: read
Expand All @@ -22,29 +20,24 @@ jobs:
sync-orama-cloud:
name: Sync Orama Cloud
runs-on: ubuntu-latest
env:
HAS_API_KEY_SECRET: ${{ github.event_name == 'push' || secrets.PRIVATE_ORAMA_API_KEY != '' }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository

steps:
- name: 'Checkout'
if: ${{ env.HAS_API_KEY_SECRET == 'true' }}
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false

- name: Set up Node.js
if: ${{ env.HAS_API_KEY_SECRET == 'true' }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install Node.js dependencies
if: ${{ env.HAS_API_KEY_SECRET == 'true' }}
run: npm ci

- name: Sync Orama Cloud
if: ${{ env.HAS_API_KEY_SECRET == 'true' }}
run: node ./scripts/sync-orama.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/update-external-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: lts/*
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand Down Expand Up @@ -107,7 +108,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '24.13'
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand Down
Loading