Current behavior
Hello! I was attempting to us the the GitHub action to automatically generate documentation for an action of mine, but it fails to execute with the error included in the CI logs below.
Note that it fails no matter the value of the pretty input is based on my testing.
Expected behavior
It executes :)
github-action-readme-generator version
bitflight-devops/github-action-readme-generator@v1
CI environment
GitHub Actions, ubuntu-latest
github-action-readme-generator configuration i.e: .ghadocs.json
Here is my simple workflow I was using for testing:
name: Docs
on:
workflow_dispatch:
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: bitflight-devops/github-action-readme-generator@v1
with:
title_prefix: ""
pretty: false
- name: Commit updated docs
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "docs: auto-generate README from action.yml [skip ci]"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author:
"github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
CI logs
Run bitflight-devops/github-action-readme-generator@v1
node:internal/modules/esm/resolve:873
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'prettier' imported from /home/runner/work/_actions/bitflight-devops/github-action-readme-generator/v1/dist/bin/index.js
at packageResolve (node:internal/modules/esm/resolve:873:9)
at moduleResolve (node:internal/modules/esm/resolve:946:18)
at defaultResolve (node:internal/modules/esm/resolve:1188:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:708:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:657:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:640:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:264:38)
at ModuleJob._link (node:internal/modules/esm/module_job:168:49) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v20.20.1
Current behavior
Hello! I was attempting to us the the GitHub action to automatically generate documentation for an action of mine, but it fails to execute with the error included in the CI logs below.
Note that it fails no matter the value of the
prettyinput is based on my testing.Expected behavior
It executes :)
github-action-readme-generatorversionbitflight-devops/github-action-readme-generator@v1
CI environment
GitHub Actions, ubuntu-latest
github-action-readme-generatorconfiguration i.e:.ghadocs.jsonHere is my simple workflow I was using for testing:
CI logs
Run bitflight-devops/github-action-readme-generator@v1
node:internal/modules/esm/resolve:873
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'prettier' imported from /home/runner/work/_actions/bitflight-devops/github-action-readme-generator/v1/dist/bin/index.js
at packageResolve (node:internal/modules/esm/resolve:873:9)
at moduleResolve (node:internal/modules/esm/resolve:946:18)
at defaultResolve (node:internal/modules/esm/resolve:1188:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:708:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:657:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:640:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:264:38)
at ModuleJob._link (node:internal/modules/esm/module_job:168:49) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v20.20.1