diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 065b3def..67b945d5 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -5,9 +5,6 @@ on: branches: - main -permissions: - contents: write - jobs: deploy: runs-on: ubuntu-latest @@ -15,7 +12,22 @@ jobs: if: github.repository_owner == 'ShaunLawrie' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Build Docs + shell: pwsh + run: | + $ErrorActionPreference = "Stop" + $docsProjectRoot = "./PwshSpectreConsole.Docs" + npm ci --prefix $docsProjectRoot + if ($LASTEXITCODE -ne 0) { + throw "Failed to install npm dependencies" + } + npm run build --prefix $docsProjectRoot + if ($LASTEXITCODE -ne 0) { + throw "Failed to run npm build" + } - name: Deploy uses: cloudflare/wrangler-action@v3 with: diff --git a/PwshSpectreConsole/PwshSpectreConsole.psd1 b/PwshSpectreConsole/PwshSpectreConsole.psd1 index 7f99720e..15c7a12d 100644 --- a/PwshSpectreConsole/PwshSpectreConsole.psd1 +++ b/PwshSpectreConsole/PwshSpectreConsole.psd1 @@ -12,7 +12,7 @@ RootModule = 'PwshSpectreConsole' # Version number of this module. -ModuleVersion = '1.11.0' +ModuleVersion = '1.10.2' # Supported PSEditions # CompatiblePSEditions = @()