@duckduckgo/autoconsent 14.55.0 → 14.55.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,6 +24,16 @@ on:
24
24
  type: boolean
25
25
  required: true
26
26
  default: true
27
+ extension:
28
+ description: 'Propagate to Extension'
29
+ type: boolean
30
+ required: true
31
+ default: true
32
+ apple_embedded:
33
+ description: 'Propagate embedded extension to Apple'
34
+ type: boolean
35
+ required: true
36
+ default: true
27
37
 
28
38
  workflow_call:
29
39
  inputs:
@@ -47,6 +57,14 @@ on:
47
57
  description: 'Propagate to Windows'
48
58
  type: boolean
49
59
  default: true
60
+ extension:
61
+ description: 'Propagate to Extension'
62
+ type: boolean
63
+ default: true
64
+ apple_embedded:
65
+ description: 'Propagate embedded extension to Apple'
66
+ type: boolean
67
+ default: true
50
68
 
51
69
  env:
52
70
  TAG: ${{ inputs.tag_name }}
@@ -281,6 +299,74 @@ jobs:
281
299
  body: '${{ env.PR_BODY_WINDOWS }}'
282
300
  token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
283
301
 
302
+ # ------------------------------------------------------------------------------
303
+ # Create PR with updated autoconsent in the DDG Extension
304
+ # ------------------------------------------------------------------------------
305
+
306
+ update_extension:
307
+ if: ${{ inputs.extension || inputs.apple_embedded }}
308
+ runs-on: ubuntu-latest
309
+ needs:
310
+ - get_release_info
311
+ - create_asana_tasks
312
+ outputs:
313
+ pull-request-url: ${{ steps.create-pr.outputs.pull-request-url }}
314
+ env:
315
+ RELEASE_URL: ${{ needs.get_release_info.outputs.release-url }}
316
+ steps:
317
+ # --- Setup ---
318
+ - uses: actions/checkout@v3
319
+ with:
320
+ path: autoconsent/
321
+ - uses: ./autoconsent/.github/actions/setup-release-scripts
322
+ # --- Action ---
323
+ - name: Checkout DDG Extension
324
+ uses: actions/checkout@v3
325
+ with:
326
+ repository: duckduckgo/duckduckgo-privacy-extension
327
+ path: extension/
328
+ token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
329
+ - uses: actions/setup-node@v3
330
+ with:
331
+ node-version: current
332
+ - name: Update extension autoconsent reference
333
+ run: |
334
+ cd extension
335
+ npm ci
336
+ npm install @duckduckgo/autoconsent@${{ env.TAG }}
337
+ cd ..
338
+ - name: Bump embedded manifest version
339
+ if: ${{ inputs.apple_embedded }}
340
+ run: |
341
+ cd extension
342
+ node scripts/bumpVersion.js "$(date +"%Y.%-m.%-d")" embedded
343
+ cd ..
344
+ - name: Create Extension PR Body
345
+ env:
346
+ ASANA_OUTPUT: ${{ needs.create_asana_tasks.outputs.asana-output }}
347
+ run: |
348
+ TEMPLATE="$(node ./autoconsent/ci/create-pr-template.js extension)"
349
+ # Creates a randomised delimiter. See https://app.asana.com/0/1199892415909552/1203243297643584/f
350
+ DELIMITER=$(echo $RANDOM | md5sum | head -c 20;)
351
+ echo "PR_BODY_EXTENSION<<$DELIMITER" >> $GITHUB_ENV
352
+ echo "$TEMPLATE" >> $GITHUB_ENV
353
+ echo "$DELIMITER" >> $GITHUB_ENV
354
+ # --- Effect ---
355
+ - name: Create PR for DDG Extension
356
+ uses: peter-evans/create-pull-request@v7
357
+ id: create-pr
358
+ with:
359
+ path: extension/
360
+ add-paths: |
361
+ package.json
362
+ package-lock.json
363
+ browsers/embedded/manifest.json
364
+ commit-message: Update autoconsent to ${{ env.TAG }}
365
+ branch: update-autoconsent
366
+ title: Update autoconsent to ${{ env.TAG }}
367
+ body: '${{ env.PR_BODY_EXTENSION }}'
368
+ token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
369
+
284
370
  # ------------------------------------------------------------------------------
285
371
  # Update Asana subtasks with PR URLs
286
372
  # ------------------------------------------------------------------------------
@@ -290,7 +376,7 @@ jobs:
290
376
  # Always run this final step, even if any of the updates have failed
291
377
  # unless the previous jobs were cancelled
292
378
  if: ${{ always() && !contains(needs.*.result, 'cancelled') }}
293
- needs: [create_asana_tasks, update_android, update_apple, update_windows]
379
+ needs: [create_asana_tasks, update_android, update_apple, update_windows, update_extension]
294
380
  steps:
295
381
  # --- Setup ---
296
382
  - uses: actions/checkout@v3
@@ -305,6 +391,7 @@ jobs:
305
391
  APPLE_PR_URL: ${{ needs.update_apple.outputs.pull-request-url }}
306
392
  WINDOWS_PR_URL: ${{ needs.update_windows.outputs.pull-request-url }}
307
393
  ANDROID_PR_URL: ${{ needs.update_android.outputs.pull-request-url }}
394
+ EXTENSION_PR_URL: ${{ needs.update_extension.outputs.pull-request-url }}
308
395
  run: |
309
396
  node ./autoconsent/ci/asana-update-tasks.js
310
397
 
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # v14.55.1 (Wed Feb 25 2026)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Add CI workflow for updating DDG extensions [#1154](https://github.com/duckduckgo/autoconsent/pull/1154) ([@muodov](https://github.com/muodov))
6
+ - Revert "Bump tldts-experimental from 7.0.19 to 7.0.23" [#1156](https://github.com/duckduckgo/autoconsent/pull/1156) ([@sammacbeth](https://github.com/sammacbeth))
7
+
8
+ #### Authors: 2
9
+
10
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
11
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
12
+
13
+ ---
14
+
1
15
  # v14.55.0 (Fri Feb 20 2026)
2
16
 
3
17
  #### 🚀 Enhancement
@@ -19,7 +19,8 @@ const releaseTaskGid = match?.groups?.task;
19
19
  * @typedef {{
20
20
  * android: platformData,
21
21
  * windows: platformData,
22
- * apple: platformData
22
+ * apple: platformData,
23
+ * extension: platformData
23
24
  * }} AsanaOutput
24
25
  */
25
26
 
@@ -40,6 +41,11 @@ const platforms = {
40
41
  taskGid: '',
41
42
  taskUrl: '',
42
43
  },
44
+ extension: {
45
+ displayName: 'Extension',
46
+ taskGid: '',
47
+ taskUrl: '',
48
+ },
43
49
  };
44
50
 
45
51
  const setupAsana = () => {
@@ -6,6 +6,7 @@ const prUrls = {
6
6
  android: process.env.ANDROID_PR_URL,
7
7
  apple: process.env.APPLE_PR_URL,
8
8
  windows: process.env.WINDOWS_PR_URL,
9
+ extension: process.env.EXTENSION_PR_URL,
9
10
  };
10
11
  const asanaOutputRaw = process.env.ASANA_OUTPUT;
11
12
 
@@ -2,7 +2,8 @@ const { readFileSync } = require('fs');
2
2
  const { join } = require('path');
3
3
  const { replaceAllInString } = require('./release-utils.js');
4
4
  const cwd = join(__dirname, '..');
5
- const filepath = (...path) => join(cwd, ...path);
5
+ /** @param {...string} pathParts */
6
+ const filepath = (...pathParts) => join(cwd, ...pathParts);
6
7
 
7
8
  /**
8
9
  * @typedef {{
@@ -11,7 +12,7 @@ const filepath = (...path) => join(cwd, ...path);
11
12
  * releaseUrl: string,
12
13
  * version: string
13
14
  * }} CreatePRTemplateData
14
- * @typedef {'android' | 'extensions' | 'apple' | 'windows'} ReleasePlatform
15
+ * @typedef {'android' | 'extension' | 'apple' | 'windows'} ReleasePlatform
15
16
  */
16
17
 
17
18
  const platform = /** @type {ReleasePlatform} */ (process.argv[2]);