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.

build: try to fix lerna releasing

Martin Adámek30a8486f4782
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 00e970013..e71cb9276 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -69,10 +69,10 @@ jobs:
- name: Install Dependencies
run: npm ci
- - name: Build
- run: npm run ci:build
-
# TODO uncomment once releasing works as expected
+# - name: Build
+# run: npm run ci:build
+#
# - name: Tests
# run: npm test
@@ -106,7 +106,7 @@ jobs:
run: npm ci
- name: Build packages
- run: npm run ci:build
+ run: npm run build
- name: Setup git user and npm
run: |
@@ -118,14 +118,14 @@ jobs:
- name: Bump version to custom version
if: ${{ github.event.inputs.version == 'custom' && github.event.inputs.custom_version != '' }}
- run: npx lerna version ${{ github.event.inputs.custom_version}} -- --yes --no-verify-access
+ run: npm run version ${{ github.event.inputs.custom_version}} -- --yes --no-verify-access
- name: Bump version to ${{ github.event.inputs.version }} version
if: ${{ github.event.inputs.version != 'custom' }}
- run: npx lerna version ${{ github.event.inputs.version}} -- --yes --no-verify-access
+ run: npm run version ${{ github.event.inputs.version}} -- --yes --no-verify-access
- name: Publish packages
- run: npx lerna publish from-package --contents dist --force-publish -- --yes --no-verify-access
+ run: npx run publish -- --yes --no-verify-access
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_USER: "[email protected]:${{ secrets.GH_TOKEN }}"
diff --git a/package.json b/package.json
index 3a9add3fb..282c65118 100644
--- a/package.json
+++ b/package.json
@@ -46,8 +46,8 @@
"coverage": "jest --coverage",
"publish:next": "lerna publish from-package --contents dist --dist-tag next --force-publish",
"release:next": "npm run build && npm run publish:next",
+ "version": "lerna version",
"publish": "lerna publish from-package --contents dist --force-publish",
- "release": "npm run build && npm run publish",
"lint": "eslint packages/browser-pool/tab-as-a-container packages/*/src packages/*/test test",
"lint:fix": "eslint packages/browser-pool/tab-as-a-container packages/*/src packages/*/test test --fix"
},