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.

chore(ci): treat any non-prod dist-tag as canary in publish workflow

Martin Adámek1093e313f4e1
diff --git a/.github/workflows/publish-to-npm.yml b/.github/workflows/publish-to-npm.yml
index ea4fbbb08..06e0e3434 100644
--- a/.github/workflows/publish-to-npm.yml
+++ b/.github/workflows/publish-to-npm.yml
@@ -64,12 +64,12 @@ jobs:
run: pnpm ci:build
- name: Bump canary versions
- if: inputs.dist-tag == 'next'
+ if: inputs.dist-tag != 'prod'
run: |
pnpm turbo copy --force -- --canary=major --preid=beta
- name: Commit changes
- if: inputs.dist-tag == 'next'
+ if: inputs.dist-tag != 'prod'
uses: EndBug/add-and-commit@v11
id: commit
with:
@@ -90,7 +90,7 @@ jobs:
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
- name: Publish to NPM (@next)
- if: inputs.dist-tag == 'next'
+ if: inputs.dist-tag != 'prod'
uses: nick-fields/retry@v4
with:
timeout_minutes: 10