@duckduckgo/autoconsent 11.1.0 → 11.3.0

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.
@@ -6,6 +6,49 @@ on:
6
6
  tag_name:
7
7
  description: 'The tag of the release to propagate'
8
8
  required: true
9
+ android:
10
+ description: 'Propagate to Android'
11
+ type: boolean
12
+ required: true
13
+ default: true
14
+ ios:
15
+ description: 'Propagate to iOS'
16
+ type: boolean
17
+ required: true
18
+ default: true
19
+ macos:
20
+ description: 'Propagate to macOS'
21
+ type: boolean
22
+ required: true
23
+ default: true
24
+ windows:
25
+ description: 'Propagate to Windows'
26
+ type: boolean
27
+ required: true
28
+ default: true
29
+
30
+ workflow_call:
31
+ inputs:
32
+ tag_name:
33
+ type: string
34
+ description: 'The tag of the release to propagate'
35
+ required: true
36
+ android:
37
+ description: 'Propagate to Android'
38
+ type: boolean
39
+ default: true
40
+ ios:
41
+ description: 'Propagate to iOS'
42
+ type: boolean
43
+ default: true
44
+ macos:
45
+ description: 'Propagate to macOS'
46
+ type: boolean
47
+ default: true
48
+ windows:
49
+ description: 'Propagate to Windows'
50
+ type: boolean
51
+ default: true
9
52
 
10
53
  env:
11
54
  TAG: ${{ inputs.tag_name }}
@@ -77,6 +120,7 @@ jobs:
77
120
  # ------------------------------------------------------------------------------
78
121
 
79
122
  update_android:
123
+ if: ${{ inputs.android }}
80
124
  runs-on: ubuntu-latest
81
125
  outputs:
82
126
  pull-request-url: ${{ steps.create-pr.outputs.pull-request-url }}
@@ -119,7 +163,7 @@ jobs:
119
163
  echo "$DELIMITER" >> $GITHUB_ENV
120
164
  # --- Effect ---
121
165
  - name: Create PR for Android
122
- uses: peter-evans/create-pull-request@88bf0de51c7487d91e1abbb4899332e602c58bbf
166
+ uses: peter-evans/create-pull-request@v7
123
167
  id: create-pr
124
168
  with:
125
169
  path: android/
@@ -128,7 +172,7 @@ jobs:
128
172
  package-lock.json
129
173
  autoconsent/
130
174
  commit-message: Update autoconsent to ${{ env.TAG }}
131
- branch: update-autoconsent-${{ env.TAG }}
175
+ branch: update-autoconsent
132
176
  title: Update autoconsent to ${{ env.TAG }}
133
177
  body: '${{ env.PR_BODY_ANDROID }}'
134
178
  token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
@@ -138,6 +182,7 @@ jobs:
138
182
  # ------------------------------------------------------------------------------
139
183
 
140
184
  update_ios:
185
+ if: ${{ inputs.ios }}
141
186
  runs-on: ubuntu-latest
142
187
  outputs:
143
188
  pull-request-url: ${{ steps.create-pr.outputs.pull-request-url }}
@@ -180,7 +225,7 @@ jobs:
180
225
  echo "$DELIMITER" >> $GITHUB_ENV
181
226
  # --- Effect ---
182
227
  - name: Create PR for iOS
183
- uses: peter-evans/create-pull-request@88bf0de51c7487d91e1abbb4899332e602c58bbf
228
+ uses: peter-evans/create-pull-request@v7
184
229
  id: create-pr
185
230
  with:
186
231
  path: ios/
@@ -189,7 +234,7 @@ jobs:
189
234
  package-lock.json
190
235
  DuckDuckGo/Autoconsent/
191
236
  commit-message: Update autoconsent to ${{ env.TAG }}
192
- branch: update-autoconsent-${{ env.TAG }}
237
+ branch: update-autoconsent
193
238
  title: Update autoconsent to ${{ env.TAG }}
194
239
  body: '${{ env.PR_BODY_IOS }}'
195
240
  token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
@@ -199,6 +244,7 @@ jobs:
199
244
  # ------------------------------------------------------------------------------
200
245
 
201
246
  update_macos:
247
+ if: ${{ inputs.macos }}
202
248
  runs-on: ubuntu-latest
203
249
  outputs:
204
250
  pull-request-url: ${{ steps.create-pr.outputs.pull-request-url }}
@@ -241,7 +287,7 @@ jobs:
241
287
  echo "$DELIMITER" >> $GITHUB_ENV
242
288
  # --- Effect ---
243
289
  - name: Create PR for macOS
244
- uses: peter-evans/create-pull-request@88bf0de51c7487d91e1abbb4899332e602c58bbf
290
+ uses: peter-evans/create-pull-request@v7
245
291
  id: create-pr
246
292
  with:
247
293
  path: macos/
@@ -250,7 +296,7 @@ jobs:
250
296
  package-lock.json
251
297
  DuckDuckGo/Autoconsent/
252
298
  commit-message: Update autoconsent to ${{ env.TAG }}
253
- branch: update-autoconsent-${{ env.TAG }}
299
+ branch: update-autoconsent
254
300
  title: Update autoconsent to ${{ env.TAG }}
255
301
  body: '${{ env.PR_BODY_MACOS }}'
256
302
  token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
@@ -260,6 +306,7 @@ jobs:
260
306
  # ------------------------------------------------------------------------------
261
307
 
262
308
  update_windows:
309
+ if: ${{ inputs.windows }}
263
310
  runs-on: ubuntu-latest
264
311
  outputs:
265
312
  pull-request-url: ${{ steps.create-pr.outputs.pull-request-url }}
@@ -302,14 +349,14 @@ jobs:
302
349
  echo "$DELIMITER" >> $GITHUB_ENV
303
350
  # --- Effect ---
304
351
  - name: Create PR for Windows
305
- uses: peter-evans/create-pull-request@88bf0de51c7487d91e1abbb4899332e602c58bbf
352
+ uses: peter-evans/create-pull-request@v7
306
353
  id: create-pr
307
354
  with:
308
355
  path: windows/
309
356
  add-paths: |
310
357
  WindowsBrowser/Application/Autoconsent/
311
358
  commit-message: Update autoconsent to ${{ env.TAG }}
312
- branch: update-autoconsent-${{ env.TAG }}
359
+ branch: update-autoconsent
313
360
  title: Update autoconsent to ${{ env.TAG }}
314
361
  body: '${{ env.PR_BODY_WINDOWS }}'
315
362
  token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
@@ -8,7 +8,9 @@ on:
8
8
  jobs:
9
9
  release:
10
10
  runs-on: ubuntu-latest
11
- if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
11
+ if: ${{ !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') }}
12
+ outputs:
13
+ tag_name: ${{ steps.remember_tag.outputs.tag_name }}
12
14
  steps:
13
15
  - uses: actions/checkout@v3
14
16
 
@@ -33,3 +35,15 @@ jobs:
33
35
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34
36
  run: |
35
37
  npm run release
38
+
39
+ - name: Remember git tag
40
+ id: remember_tag
41
+ run: echo "tag_name=$(git describe --exact-match --tags)" >> "$GITHUB_OUTPUT"
42
+
43
+ ddg-release:
44
+ name: Propagate to DDG apps
45
+ needs: release
46
+ if: ${{ !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') }}
47
+ uses: ./.github/workflows/ddg-release.yml
48
+ with:
49
+ tag_name: ${{ needs.release.outputs.tag_name }}
package/.prettierignore CHANGED
@@ -3,5 +3,6 @@ dist
3
3
  data
4
4
  package.json
5
5
  package-lock.json
6
+ addon/manifest.*.json
6
7
  **/*.md
7
8
  **/*.har
package/CHANGELOG.md CHANGED
@@ -1,3 +1,39 @@
1
+ # v11.3.0 (Fri Nov 15 2024)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Fix release workflow parameters [#531](https://github.com/duckduckgo/autoconsent/pull/531) ([@muodov](https://github.com/muodov))
6
+ - Fix release workflow [#530](https://github.com/duckduckgo/autoconsent/pull/530) ([@muodov](https://github.com/muodov))
7
+ - Automate DDG releases [#528](https://github.com/duckduckgo/autoconsent/pull/528) ([@muodov](https://github.com/muodov))
8
+
9
+ #### Authors: 1
10
+
11
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
12
+
13
+ ---
14
+
15
+ # v11.2.0 (Thu Nov 14 2024)
16
+
17
+ #### 🚀 Enhancement
18
+
19
+ - Do not bundle network allowlist rules from easylist [#527](https://github.com/duckduckgo/autoconsent/pull/527) ([@muodov](https://github.com/muodov))
20
+ - Bump typescript-eslint from 8.13.0 to 8.14.0 in the dev-dependencies group [#525](https://github.com/duckduckgo/autoconsent/pull/525) ([@dependabot[bot]](https://github.com/dependabot[bot]))
21
+
22
+ #### 🐛 Bug Fix
23
+
24
+ - Bump tldts-experimental from 6.1.58 to 6.1.60 [#526](https://github.com/duckduckgo/autoconsent/pull/526) ([@dependabot[bot]](https://github.com/dependabot[bot]))
25
+
26
+ #### ⚠️ Pushed to `main`
27
+
28
+ - Do not run prettier on autogenerated manifest files ([@muodov](https://github.com/muodov))
29
+
30
+ #### Authors: 2
31
+
32
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
33
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
34
+
35
+ ---
36
+
1
37
  # v11.1.0 (Mon Nov 11 2024)
2
38
 
3
39
  #### 🚀 Enhancement
@@ -3,10 +3,10 @@ const { replaceAllInString, getLink } = require('./release-utils.js');
3
3
 
4
4
  const ASANA_ACCESS_TOKEN = process.env.ASANA_ACCESS_TOKEN;
5
5
  const prUrls = {
6
- android: process.env.ANDROID_PR_URL || 'https://example.com/',
7
- ios: process.env.IOS_PR_URL || 'https://example.com/',
8
- macos: process.env.MACOS_PR_URL || 'https://example.com/',
9
- windows: process.env.WINDOWS_PR_URL || 'https://example.com/',
6
+ android: process.env.ANDROID_PR_URL,
7
+ ios: process.env.IOS_PR_URL,
8
+ macos: process.env.MACOS_PR_URL,
9
+ windows: process.env.WINDOWS_PR_URL,
10
10
  };
11
11
  const asanaOutputRaw = process.env.ASANA_OUTPUT;
12
12
 
@@ -34,7 +34,10 @@ const asanaUpdateTasks = async () => {
34
34
  for (const [platformName, platformObj] of platformEntries) {
35
35
  // If we're missing required data, either we haven't implemented automation for that platform yet,
36
36
  // or something went wrong in a previous job
37
- if (!platformObj.taskGid || !prUrls[platformName]) continue;
37
+ if (!platformObj.taskGid || !prUrls[platformName]) {
38
+ console.error(`Skipping ${platformName} task update`);
39
+ continue;
40
+ }
38
41
 
39
42
  const { html_notes: notes } = await asana.tasks.getTask(platformObj.taskGid, { opt_fields: 'html_notes' });
40
43