Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

TypeDoc failing in GitHub Actions #13

@lloydjatkinson

Description

@lloydjatkinson

Expected Behavior

Typedoc will work correctly when run from the example Actions file deploy-gh-pages.yml

Actual Behavior

2021-11-19T12:10:40.5303299Z ##[group]Run npm docs
2021-11-19T12:10:40.5303938Z �[36;1mnpm docs�[0m
2021-11-19T12:10:40.5351103Z shell: /usr/bin/bash -e {0}
2021-11-19T12:10:40.5351586Z ##[endgroup]
2021-11-19T12:10:40.8514286Z npm ERR! code 3
2021-11-19T12:10:40.8542715Z npm ERR! Command failed: xdg-open https://github.com/lloydjatkinson/affirm#readme
2021-11-19T12:10:40.8553401Z npm ERR! /usr/bin/xdg-open: 869: www-browser: not found
2021-11-19T12:10:40.8554473Z npm ERR! /usr/bin/xdg-open: 869: links2: not found
2021-11-19T12:10:40.8555418Z npm ERR! /usr/bin/xdg-open: 869: elinks: not found
2021-11-19T12:10:40.8556312Z npm ERR! /usr/bin/xdg-open: 869: links: not found
2021-11-19T12:10:40.8557185Z npm ERR! /usr/bin/xdg-open: 869: lynx: not found
2021-11-19T12:10:40.8558039Z npm ERR! /usr/bin/xdg-open: 869: w3m: not found
2021-11-19T12:10:40.8559301Z npm ERR! xdg-open: no method available for opening 'https://github.com/lloydjatkinson/affirm#readme'
2021-11-19T12:10:40.8561052Z npm ERR! 
2021-11-19T12:10:40.8914363Z 
2021-11-19T12:10:40.8924434Z npm ERR! A complete log of this run can be found in:
2021-11-19T12:10:40.8928246Z npm ERR!     /home/runner/.npm/_logs/2021-11-19T12_10_40_853Z-debug.log
2021-11-19T12:10:40.9016097Z ##[error]Process completed with exit code 3.
2021-11-19T12:10:40.9120880Z Post job cleanup.

image

Steps to Reproduce the Problem

  1. Clone the repo
  2. Push to your own new repo
  3. Wait for GitHub Actions to fail

Changes

The only changes I've made from this setup is I have swapped over to npm and I specify Node 16 in the deploy_pages job step.

TypeDoc works fine locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions