Skip to content

Merge pull request #1402 from near/changeset-release/master #54

Merge pull request #1402 from near/changeset-release/master

Merge pull request #1402 from near/changeset-release/master #54

name: Deploy TypeDoc on GitHub pages
on:
push:
branches:
master
env:
NODE_VERSION: 20.15.0
ENTRY_FILE: 'packages'
CONFIG_PATH: 'tsconfig.base.json'
USES_PNPM: 'true'
DESTINATION_FOLDER: "docs"
jobs:
deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 9.4.0
- name: Install dependencies
run: pnpm install
- name: Build project
run: pnpm build
- name: Build documentation
run: pnpm docs:generate
- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ${{ env.DESTINATION_FOLDER }}
clean: true