Skip to content

Commit

Permalink
Attempt to fix publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
remusao committed Sep 17, 2023
1 parent 50688cf commit ed7f036
Show file tree
Hide file tree
Showing 22 changed files with 10,862 additions and 8,028 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,15 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v3
- name: Use node 20
uses: actions/setup-node@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: yarn
node-version: 20
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: |
yarn bootstrap
- name: Bootstrap
run: yarn install --immutable

- name: Build
run: yarn build
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@ jobs:
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git fetch --prune --unshallow
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v3
- name: Use node 20
uses: actions/setup-node@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: yarn
node-version: 20
registry-url: https://registry.npmjs.org

- name: Bootstrap
run: yarn bootstrap
run: yarn install --immutable

- name: Build
run: yarn build
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,12 @@ jobs:
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Bootstrap
run: yarn bootstrap
run: yarn install --immutable

- name: Build
run: yarn build
Expand Down
874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.3.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.6.3.cjs
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.26.6",
"npmClient": "yarn",
"useWorkspaces": true
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,35 +53,38 @@
"url": "git+ssh://git@github.com/cliqz-oss/adblocker.git"
},
"workspaces": [
"./packages/*"
"packages/*"
],
"scripts": {
"bootstrap": "yarn install --frozen-lock && lerna bootstrap",
"bootstrap": "yarn install --immutable",
"lint": "lerna run --parallel lint",
"watch": "tsc --build ./tsconfig.project.json --watch",
"build": "tsc --build ./tsconfig.project.json && lerna run build",
"bundle": "lerna run --concurrency 4 bundle",
"test": "lerna run --concurrency 4 test",
"clean": "lerna run --parallel clean && lerna clean --yes",
"release": "auto shipit",
"release": "auto shipit --dry-run",
"format-check": "prettier './packages/**/*.ts' --check",
"format-fix": "prettier './packages/**/*.ts' --write"
},
"devDependencies": {
"@remusao/auto-config": "^1.1.1",
"@types/benchmark": "^2.1.0",
"@types/node": "^20.4.3",
"auto": "^10.27.0",
"@remusao/auto-config": "^1.1.2",
"@types/benchmark": "^2.1.3",
"@types/node": "^20.6.2",
"auto": "^11.0.4",
"benchmark": "^2.1.4",
"chalk": "^5.3.0",
"lerna": "^6.0.1",
"prettier": "^3.0.0",
"lerna": "^7.3.0",
"prettier": "^3.0.3",
"tslint-no-unused-expression-chai": "^0.1.4"
},
"dependencies": {},
"auto": {
"extends": "@remusao/auto-config",
"name": "Adblocker Bot",
"email": "adblocker-bot@users.noreply.github.com"
}
},
"resolutions": {
"got": "^13.0.0"
},
"packageManager": "yarn@3.6.3"
}
6 changes: 3 additions & 3 deletions packages/adblocker-benchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@cliqz/adblocker": "^1.26.6",
"tldts-experimental": "^6.0.12"
"tldts-experimental": "^6.0.14"
},
"contributors": [
{
Expand Down Expand Up @@ -64,9 +64,9 @@
}
],
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-json": "^6.0.0",
"rollup": "^3.26.3",
"rollup": "^3.29.2",
"rollup-plugin-terser": "^7.0.2"
}
}
16 changes: 8 additions & 8 deletions packages/adblocker-content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
"@cliqz/adblocker-extended-selectors": "^1.26.6"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-typescript": "^11.1.2",
"@types/node": "^20.4.3",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-typescript": "^11.1.3",
"@types/node": "^20.6.2",
"rimraf": "^5.0.1",
"rollup": "^3.26.3",
"rollup-plugin-sourcemaps": "^0.6.1",
"rollup-plugin-terser": "^7.0.0",
"tslint": "^6.0.0",
"rollup": "^3.29.2",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-no-unused-expression-chai": "^0.1.4",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"contributors": [
{
Expand Down
10 changes: 5 additions & 5 deletions packages/adblocker-electron-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
],
"dependencies": {
"@cliqz/adblocker-electron": "^1.26.6",
"electron": "^26.1.0",
"node-fetch": "^3.0.0",
"ts-node": "^10.0.0"
"electron": "^26.2.1",
"node-fetch": "^3.3.2",
"ts-node": "^10.9.1"
},
"devDependencies": {
"@types/node-fetch": "^3.0.3",
"tslint": "^6.0.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
}
}
16 changes: 8 additions & 8 deletions packages/adblocker-electron-preload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@
"@cliqz/adblocker-content": "^1.26.6"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-typescript": "^11.1.2",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-typescript": "^11.1.3",
"@types/chrome": "^0.0.246",
"electron": "^26.1.0",
"electron": "^26.2.1",
"rimraf": "^5.0.1",
"rollup": "^3.26.3",
"rollup-plugin-sourcemaps": "^0.6.1",
"tslint": "^6.0.0",
"rollup": "^3.29.2",
"rollup-plugin-sourcemaps": "^0.6.3",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-no-unused-expression-chai": "^0.1.4",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"contributors": [
{
Expand Down
20 changes: 10 additions & 10 deletions packages/adblocker-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@
"dependencies": {
"@cliqz/adblocker": "^1.26.6",
"@cliqz/adblocker-electron-preload": "^1.26.6",
"tldts-experimental": "^6.0.12"
"tldts-experimental": "^6.0.14"
},
"devDependencies": {
"@types/chai": "^4.2.18",
"@types/mocha": "^10.0.0",
"chai": "^4.2.0",
"electron": "^26.1.0",
"mocha": "^10.1.0",
"nyc": "^15.0.0",
"@types/chai": "^4.3.6",
"@types/mocha": "^10.0.1",
"chai": "^4.3.8",
"electron": "^26.2.1",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"rimraf": "^5.0.1",
"ts-node": "^10.0.0",
"tslint": "^6.0.0",
"ts-node": "^10.9.1",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-no-unused-expression-chai": "^0.1.4",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"contributors": [
{
Expand Down
22 changes: 11 additions & 11 deletions packages/adblocker-extended-selectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@
"url": "https://github.com/cliqz-oss/adblocker/issues"
},
"devDependencies": {
"@types/chai": "^4.2.18",
"@types/chai-as-promised": "^7.1.4",
"@types/jsdom": "^21.1.0",
"@types/mocha": "^10.0.0",
"@types/node": "^20.4.3",
"chai": "^4.2.0",
"@types/chai": "^4.3.6",
"@types/chai-as-promised": "^7.1.6",
"@types/jsdom": "^21.1.3",
"@types/mocha": "^10.0.1",
"@types/node": "^20.6.2",
"chai": "^4.3.8",
"chai-as-promised": "^7.1.1",
"jsdom": "^22.1.0",
"mocha": "^10.1.0",
"nyc": "^15.0.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"rimraf": "^5.0.1",
"ts-node": "^10.0.0",
"tslint": "^6.0.0",
"ts-node": "^10.9.1",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-no-unused-expression-chai": "^0.1.4",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"contributors": [
{
Expand Down
10 changes: 5 additions & 5 deletions packages/adblocker-playwright-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
},
"dependencies": {
"@cliqz/adblocker-playwright": "^1.26.6",
"node-fetch": "^3.0.0",
"playwright": "^1.36.1",
"ts-node": "^10.0.0"
"node-fetch": "^3.3.2",
"playwright": "^1.38.0",
"ts-node": "^10.9.1"
},
"devDependencies": {
"@types/node-fetch": "^3.0.3",
"tslint": "^6.0.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"contributors": [
{
Expand Down
18 changes: 9 additions & 9 deletions packages/adblocker-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@
"dependencies": {
"@cliqz/adblocker": "^1.26.6",
"@cliqz/adblocker-content": "^1.26.6",
"tldts-experimental": "^6.0.12"
"tldts-experimental": "^6.0.14"
},
"devDependencies": {
"@types/chai": "^4.2.18",
"@types/mocha": "^10.0.0",
"chai": "^4.2.0",
"mocha": "^10.1.0",
"nyc": "^15.0.0",
"playwright": "^1.36.1",
"@types/chai": "^4.3.6",
"@types/mocha": "^10.0.1",
"chai": "^4.3.8",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"playwright": "^1.38.0",
"rimraf": "^5.0.1",
"tslint": "^6.0.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"contributors": [
{
Expand Down
8 changes: 4 additions & 4 deletions packages/adblocker-puppeteer-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
},
"dependencies": {
"@cliqz/adblocker-puppeteer": "^1.26.6",
"node-fetch": "^3.0.0",
"node-fetch": "^3.3.2",
"puppeteer": "21.2.1",
"ts-node": "^10.0.0"
"ts-node": "^10.9.1"
},
"devDependencies": {
"@types/node-fetch": "^3.0.3",
"tslint": "^6.0.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"contributors": [
{
Expand Down
Loading

0 comments on commit ed7f036

Please sign in to comment.