Skip to content

[CI] Feature: Deploy typedoc to permalink #21

[CI] Feature: Deploy typedoc to permalink

[CI] Feature: Deploy typedoc to permalink #21

Workflow file for this run

name: TypeDoc
on:
pull_request:
types: [opened, edited, reopened, synchronize]
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "typedoc"
cancel-in-progress: true
jobs:
build:
name: "Generate TypeDoc"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
uses: ./.github/composite-actions/install
- name: Generate Documentation
run: pnpm typedoc
- name: Update Gist
github-token: ${{ secrets.GIST_TOKEN }}

Check failure on line 32 in .github/workflows/typedoc.yml

View workflow run for this annotation

GitHub Actions / TypeDoc

Invalid workflow file

The workflow is not valid. .github/workflows/typedoc.yml (Line: 32, Col: 9): Unexpected value 'github-token'
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const content = fs.readFileSync('./packages/thirdweb/typedoc/documentation.json', 'utf8');
const gistId = '678fe1f331a01270bb002fee660f285d';
await github.rest.gists.update({
gist_id: gistId,
files: {
'data.json': {
content: content
}
}
});
console.log(`Permalink: https://gist.githubusercontent.com/raw/${gistId}/data.json`);