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.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
chore(ci): point the release workflows at master for the v4 line
Martin Adámek2137c701e596
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex eeb4712ff..1c9921f90 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -36,7 +36,7 @@ jobs:matrix:# We don't test on Windows as the tests are flakyos: [ ubuntu-22.04 ]- node-version: [ 22, 24 ]+ node-version: [ 22, 24, 26 ]runs-on: ${{ matrix.os }}@@ -157,7 +157,8 @@ jobs:version-docs:needs: releaseruns-on: ubuntu-22.04- if: (github.event.inputs.version == 'minor' || github.event.inputs.version == 'major')+ # docs snapshots are only ever generated from master — maintenance branches must not trigger them+ if: github.ref == 'refs/heads/master' && (github.event.inputs.version == 'minor' || github.event.inputs.version == 'major')steps:- name: Checkout repositorydiff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.ymlindex 05d8b26e4..66493f30c 100644--- a/.github/workflows/test-ci.yml+++ b/.github/workflows/test-ci.yml@@ -2,9 +2,9 @@ name: Checkon:push:- branches: [ master, v4, renovate/** ]+ branches: [ master, renovate/** ]pull_request:- branches: [ master, v4 ]+ branches: [ master ]env:RETRY_TESTS: 1@@ -25,7 +25,7 @@ jobs:# tests on windows are extremely unstable# os: [ ubuntu-22.04, windows-2019 ]os: [ ubuntu-22.04 ]- node-version: [ 22, 24 ]+ node-version: [ 22, 24, 26 ]steps:- name: Checkout repository@@ -100,7 +100,7 @@ jobs:docs:name: Docs build- if: (!contains(github.event.head_commit.message, '[skip ci]') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/v4')+ if: (!contains(github.event.head_commit.message, '[skip ci]') && github.ref != 'refs/heads/master')runs-on: ubuntu-22.04steps:- name: Checkout Source code@@ -261,7 +261,7 @@ jobs:release_next:name: Release @next- if: github.event_name == 'push' && contains(github.event.ref, 'v4') && (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, 'docs:'))+ if: github.event_name == 'push' && github.ref == 'refs/heads/master' && (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, 'docs:'))needs: build_and_testruns-on: ubuntu-22.04diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.ymlindex 7fdded9d6..087dd174b 100644--- a/.github/workflows/test-integration.yml+++ b/.github/workflows/test-integration.yml@@ -2,7 +2,7 @@ name: Integration testson:pull_request:- branches: [ master, v4 ]+ branches: [ master ]workflow_dispatch:concurrency:diff --git a/RELEASE.md b/RELEASE.mdindex b221ca3f2..31551ce20 100644--- a/RELEASE.md+++ b/RELEASE.md@@ -1,54 +1,48 @@-# How to release new versions of Apify SDK-Release of new versions is managed by GitHub Actions. On pushes to the `master` branch, prerelease versions-are automatically produced. Latest releases are triggered manually through the GitHub release tool.-After creating a release there, Actions will automatically produce a latest version of the package.--## TLDR;-- To **NOT** release anything on a push to `master`, add `[skip ci]` to your commit message.-- To release `beta`, just push to `master`. If it breaks with a `Version already exists error` increment version- in `package.json` and push again.-- To release `latest`, go to releases on GitHub, draft and publish a release. If you don't know how, read below.--## Prerelease (beta) versions-On each push to the `master` branch, a new prerelease version is automatically built and published-by GitHub Actions. To skip the process, add `[skip ci]` to your commit message.--### Release process-1. Actions build is triggered by a push to `master` (typically a merge of a PR).-2. Actions lint the source code and run tests in Node.js 10, 12 and 14.-3. If all is well, a new prerelease version is published to NPM (`${VERSION}-beta.${COUNTER}`),- where `VERSION` is the version in package.json and `COUNTER` is a zero based index of existing prereleases.- Example: `0.15.1-beta.3`.-4. The package is tagged with the `beta` NPM tag and a Git tag is associated with the triggering commit.-5. A build of Apify docker images is triggered that updates the `beta` packages to use the newly published package.-6. All done and ready to use.--### Updating a release version-When releasing breaking changes, new features or for any other reason that requires a version bump,-manually increment the version in the `package.json` file. Such as from `0.14.15` to `0.15.0`.-This will automatically trigger a prerelease build with the `0.15.0-beta.0` version.--### Existing versions-Actions will not allow you to publish a prerelease of a version that's already published. For example,-if version `0.14.15` already exists on NPM, you can no longer release a `0.14.15-beta.0` version.--## Latest release-To trigger a latest release, go to the GitHub release tool (select `releases` under `<> Code`).-There, draft a new release, fill the form (see below) and hit `Publish release`.-Actions will automatically release the latest version of the package.--### How to fill the form-- The version tag should be in the format `v${VERSION}` where `VERSION` is the version from `package.json`.- Such as `v0.15.0` or `v0.16.17`.-- The target will typically be `master`, but you can also release any previous commit by selecting it or searching- for it by ID. This is useful when there have been some changes in master from the latest prerelease and you'd- like to release an older prerelease version as latest. You can find the commit ID easily by searching for the- prerelease tag.-- The title should be the same as the version tag.-- Typically just adding changelog to the release would be fine, but feel free to add extra information.--### Release process-Similarly to the prerelease, the latest release process:-1. Triggers build, lints, runs tests.-2. Publishes new package to NPM with the `latest` tag and the version from package.json. Such as `0.15.1`.-3. A build and deploy of Apify docker images is triggered with the `latest` tag.+# How Crawlee releases work++Releases are managed by GitHub Actions and lerna. There are two release lines:++| line | branch | stable dist-tag | canary dist-tag |+|---|---|---|---|+| v4 (current development) | `master` | `latest` (from 4.0.0 on) | `v4` now, `next` once 4.0.0 is stable |+| v3 (maintenance) | `3.x` | `latest` until 4.0.0 ships, then `latest-v3` | `next` now, `next-v3` once 4.0.0 is stable |++Release candidates for the next major are published from `master` under the `rc` dist-tag.++## Canary releases++Every push to `master` or `3.x` (that is not a docs change and does not say `[skip ci]`)+triggers the `release_next` job in `test-ci.yml`. It builds the packages, derives a canary+version from `lerna.json` (`scripts/copy.ts --canary`) and invokes `publish-to-npm.yml`,+which publishes all packages under the branch's canary dist-tag (see the table above; the+tag is hardcoded in the branch's `publish:next` script in `package.json`). No commit or git+tag is created for canaries.++## Stable releases++Trigger the `Release @latest` workflow (`release.yml`) manually via `workflow_dispatch`+**from the branch you want to release**:++- `master` + `bump: major` is how `4.0.0` goes out (lerna bumps `3.18.x` → `4.0.0`,+ publishes to `latest`).+- `3.x` + `bump: patch`/`minor` ships v3 maintenance releases.++The workflow runs the tests, bumps versions via `lerna version` (conventional-commits+changelog, GitHub release, git tag), pins internal dependency versions, publishes through+`publish-to-npm.yml` with `dist-tag: prod`, and triggers Apify Docker image builds.++On minor/major releases from `master`, the `version-docs` job snapshots the current docs+into `website/versioned_docs` (Docusaurus `docs:version` + `api:version`). The job never+runs for maintenance branches — 3.x docs live in the `version-3.18` snapshot on `master`.++## RC releases++Dispatch `publish-to-npm.yml` from `master` with `dist-tag: rc`. This publishes+`4.0.0-rc.N` under the `rc` dist-tag and pushes a `v4.0.0-rc.N` git tag pointing at the+released commit; no version-bump commit lands on the branch.++## v4.0.0 release day++See the tracking issue for the ordered checklist (publish 4.0.0 to `latest`, switch+master canaries `v4` → `next` and `--canary=major` → `--canary=patch`, switch 3.x to+`latest-v3`/`next-v3`, drop the RC docs label).