@@ -15,50 +15,61 @@ jobs:
1515 - uses : actions/checkout@v4
1616 with :
1717 ref : 1fd5e3779d65d43134eddebac01e35f0ea3c0ebb
18+
1819 - uses : actions/setup-node@v4
1920 with :
2021 node-version : " 22"
22+
2123 - name : Generate source archive
2224 run : npm run archive
2325 env :
2426 VERSION : 0.6.0
27+
28+ - name : Upload source archive
29+ uses : actions/upload-artifact@v4
30+ with :
31+ name : codecov-browser-extension-0.6.0.tar.gz
32+ path : codecov-browser-extension-0.6.0.tar.gz
33+
2534 - name : Install dependencies
26- run : npm ci
27- - name : Build extension
35+ run : npm install
36+
37+ - name : Build Chrome extension
2838 run : npm run build
2939 env :
3040 VERSION : 0.6.0
31- - name : Prepare Firefox extension
32- run : |
33- cp -r dist dist-chrome
34- mv dist/manifest.firefox.json dist/manifest.json
35- npm run set-version
36- mv dist dist-firefox
41+
3742 - name : Upload built Chrome extension
3843 uses : actions/upload-artifact@v4
3944 with :
4045 name : codecov-chrome-0.6.0
41- path : ./dist-chrome/
42- - name : Upload built Firefox extension
43- uses : actions/upload-artifact@v4
44- with :
45- name : codecov-firefox-0.6.0
46- path : ./dist-firefox/
47- - name : Upload source archive
48- uses : actions/upload-artifact@v4
49- with :
50- name : codecov-browser-extension-0.6.0.tar.gz
51- path : codecov-browser-extension-0.6.0.tar.gz
46+ path : ./dist/
47+
5248 # - name: Publish to Chrome
53- # working-directory: dist-chrome
49+ # working-directory: dist
5450 # run: npx chrome-webstore-upload-cli@3
5551 # env:
5652 # EXTENSION_ID: "gedikamndpbemklijjkncpnolildpbgo"
5753 # CLIENT_ID: ${{ secrets.GOOGLE_WEB_STORE_CLIENT_ID }}
5854 # CLIENT_SECRET: ${{ secrets.GOOGLE_WEB_STORE_CLIENT_SECRET }}
5955 # REFRESH_TOKEN: ${{ secrets.GOOGLE_WEB_STORE_REFRESH_TOKEN }}
56+
57+ - name : Clean dist
58+ run : rm -r dist
59+
60+ - name : Build Firefox extension
61+ run : npm run build:firefox
62+ env :
63+ VERSION : 0.6.0
64+
65+ - name : Upload built Firefox extension
66+ uses : actions/upload-artifact@v4
67+ with :
68+ name : codecov-firefox-0.6.0
69+ path : ./dist/
70+
6071 # - name: Publish to Firefox
61- # working-directory: dist-firefox
72+ # working-directory: dist
6273 # run: npx web-ext sign
6374 # env:
6475 # WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_JWT_ISSUER }}
0 commit comments