# Dev version of Documenter.jl on GitHub Actions

**URL:** <https://discourse.julialang.org/t/dev-version-of-documenter-jl-on-github-actions/91498>\
**Category:** Tooling\
**Tags:** documenter, github-actions\
**Created:** [December 10, 2022, 3:28am UTC](https://discourse.julialang.org/t/dev-version-of-documenter-jl-on-github-actions/91498 "2022-12-10T03:28:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tfiers/32/32427_2.png) [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Post date:** [December 10, 2022, 3:28am UTC](https://discourse.julialang.org/t/dev-version-of-documenter-jl-on-github-actions/91498/1 "2022-12-10T03:28:36Z")

</div>

I installed an unreleased version of Documenter in a package’s `docs/Project.toml` (`docs/Manifest.toml` is committed).

Local docs build works.

But, on github, `julia-actions/julia-docdeploy` gives:

```julia
ERROR: expected package `Documenter [e30172f5]` to exist at path `/home/runner/.julia/packages/Documenter/4bxAC`

```

([Link](https://github.com/tfiers/PkgGraph.jl/actions/runs/3662297444/jobs/6191302786).  
This is when it runs sth like `julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'`).

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![tfiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tfiers/32/32427_2.png) [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Post date:** [December 10, 2022, 5:26am UTC](https://discourse.julialang.org/t/dev-version-of-documenter-jl-on-github-actions/91498/2 "2022-12-10T05:26:48Z")

</div>

Solution was to add a custom run step, with `Pkg.instantiate()`, before `julia-docdeploy`:

> <https://github.com/tfiers/PkgGraph.jl/blob/112abcc/.github/workflows/Documentation.yml#L30>

Thanks @Mark_Nahabedian in the slack for the help!

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [December 10, 2022, 6:03am UTC](https://discourse.julialang.org/t/dev-version-of-documenter-jl-on-github-actions/91498/3 "2022-12-10T06:03:43Z")

</div>

If you are committing the manifest I would suggest just `Pkg.develop` your own package there too, using a relative path. This lets you _only_ `intantiate` on CI (i.e. no `develop` there).

---

<div class="post-metadata">

**Author:** ![tfiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tfiers/32/32427_2.png) [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Post date:** [December 10, 2022, 6:40pm UTC](https://discourse.julialang.org/t/dev-version-of-documenter-jl-on-github-actions/91498/4 "2022-12-10T18:40:20Z")

</div>

Yes I agree (my package is already relative / dev’ed in docs/Manifest.toml)

It’s the ‘docdeploy’ GitHub Action that internally does the (superfluous) Pkg.develop.

The docdeploy action has a `install-package = false` option; but setting that didn’t help this issue iirc.
