metachris / typescript-boilerplate

A modern TypeScript project setup, for Node.js and browsers

Home Page:https://www.metachris.com/2021/03/bootstrapping-a-typescript-node.js-project/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeDoc failing in GitHub Actions

lloydjatkinson opened this issue · comments

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.

Do you have a link to a failing deploy_pages job? Works fine on latest master https://github.com/metachris/typescript-boilerplate/runs/4236963691?check_suite_focus=true 🤔