Skip to content

Commit 205d2de

Browse files
Fix release notes generation (#1115)
* Release debugging * Make test release * Add version back in and clean up * Fix build paths * Update types back * Rename out file
1 parent 48c913c commit 205d2de

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

.github/workflows/build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions: write-all
99
jobs:
1010
build:
1111
if: github.event.action != 'closed'
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-latest
1313

1414
steps:
1515
- name: Checkout repository

.github/workflows/build.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ jobs:
2121

2222
- name: Fetch files and checkout
2323
run: |
24-
git fetch --all
25-
git checkout releases
26-
git checkout main .
24+
git fetch origin
25+
git checkout -b main origin/main
26+
git checkout -b releases origin/releases
27+
git checkout main -- .
2728
2829
- name: Build release
2930
run: |
@@ -44,14 +45,19 @@ jobs:
4445

4546
- name: Collect commit ranges
4647
run: |
47-
bash ./scripts/changelog.sh > ${{ github.workspace }}-CHANGELOG.txt
48+
bash ./scripts/changelog.sh > ${{ github.workspace }}/CHANGELOG.txt
4849
50+
- name: Debug changelog file
51+
run: |
52+
ls -la ${{ github.workspace }}/CHANGELOG.txt
53+
cat ${{ github.workspace }}/CHANGELOG.txt
54+
4955
- name: Create Release
5056
uses: softprops/action-gh-release@v2
5157
env:
5258
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5359
with:
54-
body_path: ${{ github.workspace }}-CHANGELOG.txt
60+
body_path: ${{ github.workspace }}/CHANGELOG.txt
5561
draft: false
5662
prerelease: false
5763
tag_name: ${{ github.event.inputs.version }}

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ${{ matrix.os }}
1818
strategy:
1919
matrix:
20-
os: [ ubuntu-20.04, windows-latest ]
20+
os: [ ubuntu-latest, windows-latest ]
2121
steps:
2222
- uses: actions/checkout@v2
2323
- name: Use Node.js 20
@@ -37,7 +37,7 @@ jobs:
3737
- name: "Clean tree"
3838
run: "npm run test-clean-tree"
3939
integration:
40-
runs-on: ubuntu-20.04
40+
runs-on: ubuntu-latest
4141
timeout-minutes: 10
4242
steps:
4343
- uses: actions/checkout@v2
@@ -76,7 +76,7 @@ jobs:
7676
run: npm run docs
7777

7878
deploy-docs:
79-
runs-on: ubuntu-20.04
79+
runs-on: ubuntu-latest
8080
needs: integration
8181
if: ${{ github.ref == 'refs/heads/main' }}
8282
environment:

injected/scripts/entry-points.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const contentScopeName = 'contentScopeFeatures'
1818
const builds = {
1919
firefox: {
2020
input: 'entry-points/mozilla.js',
21-
output: ['../build/firefox/entry-points.js']
21+
output: ['../build/firefox/inject.js']
2222
},
2323
apple: {
2424
input: 'entry-points/apple.js',
@@ -47,11 +47,11 @@ const builds = {
4747
},
4848
'chrome-mv3': {
4949
input: 'entry-points/chrome-mv3.js',
50-
output: ['../build/chrome-mv3/entry-points.js']
50+
output: ['../build/chrome-mv3/inject.js']
5151
},
5252
chrome: {
5353
input: 'entry-points/chrome.js',
54-
output: ['../build/chrome/entry-points.js']
54+
output: ['../build/chrome/inject.js']
5555
}
5656
}
5757

injected/unit-test/verify-artifacts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ const checks = {
2323
]
2424
},
2525
chrome: {
26-
file: join(BUILD, 'chrome/entry-points.js'),
26+
file: join(BUILD, 'chrome/inject.js'),
2727
tests: [
2828
{ kind: 'maxFileSize', value: CSS_OUTPUT_SIZE_CHROME },
2929
{ kind: 'containsString', text: '$TRACKER_LOOKUP$', includes: true }
3030
]
3131
},
3232
'chrome-mv3': {
33-
file: join(BUILD, 'chrome-mv3/entry-points.js'),
33+
file: join(BUILD, 'chrome-mv3/inject.js'),
3434
tests: [
3535
{ kind: 'maxFileSize', value: CSS_OUTPUT_SIZE },
3636
{ kind: 'containsString', text: 'cloneInto(', includes: false },
3737
{ kind: 'containsString', text: '$TRACKER_LOOKUP$', includes: true }
3838
]
3939
},
4040
firefox: {
41-
file: join(BUILD, 'firefox/entry-points.js'),
41+
file: join(BUILD, 'firefox/inject.js'),
4242
tests: [
4343
{ kind: 'maxFileSize', value: CSS_OUTPUT_SIZE },
4444
{ kind: 'containsString', text: 'cloneInto(', includes: true },

0 commit comments

Comments
 (0)