diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 355a2afa..0be923ac 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -22,7 +22,7 @@ jobs: & .\PwshSpectreConsole.Docs\UpdateDocs.ps1 -NonInteractive git config --global user.name 'Shaun Lawrie (via GitHub Actions)' git config --global user.email 'shaun.r.lawrie@gmail.com' - git add .\PwshSpectreConsole.Docs\src\content + git add PwshSpectreConsole.Docs/src/content git commit -m "[skip ci] Update docs" git push - name: Deploy diff --git a/PwshSpectreConsole.Docs/UpdateDocs.ps1 b/PwshSpectreConsole.Docs/UpdateDocs.ps1 index 044722fc..f610efa5 100644 --- a/PwshSpectreConsole.Docs/UpdateDocs.ps1 +++ b/PwshSpectreConsole.Docs/UpdateDocs.ps1 @@ -47,6 +47,7 @@ foreach($doc in $docs) { } # Build the docs site +npm ci --prefix $PSScriptRoot npm run build --prefix $PSScriptRoot if($NonInteractive) {