Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "22"
- run: npm ci
- name: Generate source archive
run: npm run archive
- name: Install dependencies
run: npm ci
- name: Build extension
run: npm run build
env:
Expand All @@ -30,7 +33,8 @@ jobs:
VERSION: ${{ github.event.release.tag_name }}
- run: |
cp -r dist dist-firefox
cp dist-firefox/manifest.firefox.json dist-firefox/manifest.json
mv dist-firefox/manifest.firefox.json dist-firefox/manifest.json
mv codecov-browser-extension.tar.gz dist-firefox
- name: Publish to Chrome
working-directory: dist
run: npx chrome-webstore-upload-cli@2 upload --auto-publish
Expand All @@ -41,7 +45,8 @@ jobs:
REFRESH_TOKEN: ${{ secrets.GOOGLE_WEB_STORE_REFRESH_TOKEN }}
- name: Publish to Firefox
working-directory: dist-firefox
run: npx web-ext-submit@7
run: npx web-ext sign --use-submission-api --channel listed
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

web-ext-submit was deprecated after web-ext implemented its functionality

env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_JWT_ISSUER }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_JWT_SECRET }}
WEB_EXT_API_UPLOAD_SOURCE_CODE: codecov-browser-extension.tar.gz
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
dist/
tmp/
.vscode/
codecov-browser-extension.tar.gz
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ As of today, GitHub will show you the old UI if not logged in (running in a temp

These steps will build the extension in the `dist/` folder.

MacOS 13.3.1 (22E261)
NodeJS version 19.8.1
Node 22 and npm 10

Chrome

Expand All @@ -90,7 +89,7 @@ Firefox
```sh
$ npm install
$ npm run build
$ cp dist/manifest.firefox.json dist/manifest.json
$ mv dist/manifest.firefox.json dist/manifest.json
```

## About Codecov
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"watch": "webpack --config webpack/webpack.dev.js --watch",
"build": "webpack --config webpack/webpack.prod.js",
"build.firefox": "npm run build && mv dist/manifest.firefox.json dist/manifest.json",
"lint": "prettier --write \"src/**/*.{ts,tsx}\""
"lint": "prettier --write \"src/**/*.{ts,tsx}\"",
"archive": "tar -czvf codecov-browser-extension.tar.gz --exclude node_modules ./*"
},
"author": "",
"license": "UNLICENSED",
Expand Down