From 9fa96600f2ce22f93f75f6a609da8957d069f795 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Fri, 1 Jul 2022 16:00:27 +0200 Subject: [PATCH] chore: update CI (#8614) --- .github/workflows/ci.yml | 7 ++++++- .github/workflows/pre-release.yml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7dba191509..c4bfd0fc96f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,11 @@ jobs: - name: Build run: npm run docs - name: Check if autogenerated docs differ - run: $(git diff) || exit 1 + run: | + if [[ $(git diff) ]]; then + echo "Please update the documentation by running 'npm run docs'" + exit 1 + fi - name: Check if docs need to be deployed id: needs_deploying run: | @@ -172,6 +176,7 @@ jobs: if: ${{ steps.test-chrome.conclusion != 'skipped' }} run: npm run test:firefox - name: Test bundling and installation + if: ${{ matrix.spec.name == 'Linux' }} run: | # Note: this modifies package.json to test puppeteer-core, so we test this last. npm run test:install diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 7daaddd63f0..1b1a1327efe 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -32,5 +32,5 @@ jobs: git config --global user.name 'release-please[bot]' git config --global user.email '55107282+release-please[bot]@users.noreply.github.com' git add . - git commit -m 'chore: generated versioned docs' + git commit -m 'chore: generate versioned docs' git push --no-verify