Skip to content

fix: unignore eslint.config.js in gitignore #89

fix: unignore eslint.config.js in gitignore

fix: unignore eslint.config.js in gitignore #89

Workflow file for this run

name: Build and deploy Typedoc to GitHub Pages

Check failure on line 1 in .github/workflows/pages-typedoc.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pages-typedoc.yml

Invalid workflow file

(Line: 53, Col: 1): 'name' is already defined, (Line: 55, Col: 1): 'on' is already defined, (Line: 59, Col: 1): 'permissions' is already defined, (Line: 64, Col: 1): 'concurrency' is already defined, (Line: 68, Col: 1): 'jobs' is already defined
on:
push:
branches: [ master ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install
run: |
if [ -f pnpm-lock.yaml ]; then
npm i -g pnpm && pnpm install --no-frozen-lockfile
elif [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Generate typedoc
run: |
npm run docs || npx typedoc
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
name: Build and deploy Typedoc to GitHub Pages
on:
push:
branches: [ main, master ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Generate typedoc
run: |
npm run docs || npx typedoc
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4