Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

ci: Fix execution order in NPM publishing workflow (#3229)

Jan Buchar0b815211d905
diff --git a/.github/workflows/publish-to-npm.yml b/.github/workflows/publish-to-npm.yml
index 07bb93c7e..a9373fa30 100644
--- a/.github/workflows/publish-to-npm.yml
+++ b/.github/workflows/publish-to-npm.yml
@@ -67,6 +67,9 @@ jobs:
- name: Install dependencies
run: yarn
+ - name: Build packages
+ run: yarn ci:build
+
- name: Bump canary versions
if: inputs.dist-tag == 'next'
run: |
@@ -82,9 +85,6 @@ jobs:
message: 'chore: bump canary versions [skip ci]'
push: false
- - name: Build packages
- run: yarn ci:build
-
- name: Publish to NPM (@latest)
if: inputs.dist-tag == 'prod'
run: yarn publish:prod --yes --no-verify-access
diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml
index 454295d2e..8b5a886c6 100644
--- a/.github/workflows/test-ci.yml
+++ b/.github/workflows/test-ci.yml
@@ -215,7 +215,7 @@ jobs:
- name: Generate changed packages list
id: changed-packages
run: |
- echo "changed_packages=$(node ./node_modules/.bin/lerna changed -p | wc -l | xargs)" >> $GITHUB_OUTPUT
+ echo "changed_packages=$(node ./node_modules/.bin/lerna changed -p | wc -l | xargs)" | tee -a $GITHUB_OUTPUT
- name: Report nothing to release
if: steps.changed-packages.outputs.changed_packages == '0'
@@ -236,7 +236,7 @@ jobs:
id: versions
run: |
crawlee=`node -p "require('./packages/crawlee/package.json').version"`
- echo "crawlee=$crawlee" >> $GITHUB_OUTPUT
+ echo "crawlee=$crawlee" | tee -a $GITHUB_OUTPUT
- name: Trigger Docker image builds
uses: peter-evans/repository-dispatch@v4