chore: Build only needed packages (#9620)

This commit is contained in:
Nikolay Vitkov 2023-02-02 11:18:17 +01:00 committed by GitHub
parent 3a867919a8
commit 45b7197a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,8 @@ jobs:
- name: Lint commits - name: Lint commits
run: npm run commitlint run: npm run commitlint
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
- name: Build every package
run: npm run build
- name: Generate documents - name: Generate documents
run: npm run docs run: npm run docs
- name: Check if autogenerated docs differ - name: Check if autogenerated docs differ
@ -153,7 +155,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
- name: Build packages - name: Build packages
run: npm run build run: npm run build --workspace @puppeteer-test/test
- name: Setup cache for Chromium binary - name: Setup cache for Chromium binary
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -209,7 +211,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
- name: Build packages - name: Build packages
run: npm run build run: npm run build --workspace @puppeteer-test/test
- name: Setup cache for Firefox binary - name: Setup cache for Firefox binary
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -337,7 +339,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
- name: Build packages - name: Build packages
run: npm run build run: npm run build --workspace puppeteer
- name: Pack packages - name: Pack packages
run: docker/pack.sh run: docker/pack.sh
- name: Build docker image - name: Build docker image