diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index 648f986..ef8ae26 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -1,6 +1,7 @@ name: Deploy docs to GitHub Pages on: + pull_request: push: branches: - main @@ -38,14 +39,19 @@ jobs: - name: Build docs env: DOCS_BASE_URL: ${{ steps.pages.outputs.base_url }} - run: make docs + run: make -B docs + + - name: Test scripts + run: node --test scripts/*.test.mjs - name: Upload Pages artifact + if: github.event_name == 'push' uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5 with: path: dist deploy: + if: github.event_name == 'push' needs: build runs-on: ubuntu-latest diff --git a/.nvmrc b/.nvmrc index 8a94b99..1dda03d 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -26.10.0 +26.13.0