diff --git a/.github/actions/testsSetup/action.yml b/.github/actions/testsSetup/action.yml index 9434b200ec..9fb418eafd 100644 --- a/.github/actions/testsSetup/action.yml +++ b/.github/actions/testsSetup/action.yml @@ -21,7 +21,7 @@ runs: - name: Download build artifacts uses: actions/download-artifact@v3 with: - name: rainbowbx-${{ github.sha }}.zip + name: rainbowbx-${{ github.sha }} path: build - name: Setup xvfb shell: 'bash' diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 604d4794e8..0aa6ec2de8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,7 +65,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v3 with: - name: rainbowbx-${{ github.sha }}.zip + name: rainbowbx-${{ github.sha }} path: build/ - name: Remove old screenshots run: rm -rf screenshots/* @@ -358,7 +358,7 @@ jobs: # - name: Download build artifacts # uses: actions/download-artifact@v3 # with: - # name: rainbowbx-${{ github.sha }}.zip + # name: rainbowbx-${{ github.sha }} # path: build # - name: Setup xvfb # run: | diff --git a/.github/workflows/publish-internal.yml b/.github/workflows/publish-internal.yml index 198f61f23a..51aeaa5776 100644 --- a/.github/workflows/publish-internal.yml +++ b/.github/workflows/publish-internal.yml @@ -45,7 +45,7 @@ jobs: - name: Archive the build artifact uses: actions/upload-artifact@v3 with: - name: rainbowbx-v${{ env.release_version }}.zip + name: rainbowbx-v${{ env.release_version }} path: build/ - name: Submit to the chrome webstore uses: PlasmoHQ/bpp@v3 diff --git a/.github/workflows/publish-prod-chrome.yml b/.github/workflows/publish-prod-chrome.yml index 21c716dafb..bc29228155 100644 --- a/.github/workflows/publish-prod-chrome.yml +++ b/.github/workflows/publish-prod-chrome.yml @@ -36,7 +36,7 @@ jobs: - name: Archive the build artifact uses: actions/upload-artifact@v3 with: - name: rainbowbx-chrome-v${{ env.release_version }}.zip + name: rainbowbx-chrome-v${{ env.release_version }} path: build/ - name: Zip it run: yarn zip @@ -45,14 +45,6 @@ jobs: with: artifact: ./rainbowbx.zip keys: ${{ secrets.BPP_KEYS_PROD }} - - - name: Commit changes - uses: EndBug/add-and-commit@v9 - with: - message: Version Bump (Production) - v${{ env.release_version }} - committer_name: GitHub Actions - committer_email: actions@github.com - add: '*.json' - name: Create Sentry release uses: getsentry/action-release@v1 env: diff --git a/.github/workflows/publish-prod-firefox.yml b/.github/workflows/publish-prod-firefox.yml index 82f046a868..e0bb93c26c 100644 --- a/.github/workflows/publish-prod-firefox.yml +++ b/.github/workflows/publish-prod-firefox.yml @@ -33,27 +33,18 @@ jobs: run: yarn firefox:build - name: Update the manifest run: yarn update-manifest prod - - name: Update the manifest for firefox - run: yarn firefox:manifest - name: Archive the build artifact uses: actions/upload-artifact@v3 with: - name: rainbowbx-firefox-v${{ env.release_version }}.zip + name: rainbowbx-firefox-v${{ env.release_version }} path: build/ - - name: Zip it - run: yarn firefox:zip - - name: Submit to the firefox addons store - uses: PlasmoHQ/bpp@v3.5.0 - with: - artifact: ./rainbowbx.xpi - keys: ${{ secrets.BPP_KEYS_PROD_FIREFOX }} - - name: Commit changes - uses: EndBug/add-and-commit@v9 - with: - message: Version Bump (Production) - v${{ env.release_version }} - committer_name: GitHub Actions - committer_email: actions@github.com - add: '*.json' +# - name: Zip it +# run: yarn firefox:zip +# - name: Submit to the firefox addons store +# uses: PlasmoHQ/bpp@v3.5.0 +# with: +# artifact: ./rainbowbx.xpi +# keys: ${{ secrets.BPP_KEYS_PROD_FIREFOX }} - name: Create Sentry release uses: getsentry/action-release@v1 env: diff --git a/README_FIREFOX.md b/README_FIREFOX.md new file mode 100644 index 0000000000..17c8443e55 --- /dev/null +++ b/README_FIREFOX.md @@ -0,0 +1,39 @@ +# Rainbow Extension for Firefox + +## Prerequisites + +- [yarn](https://classic.yarnpkg.com/en/docs/install) +- [nvm](https://github.com/nvm-sh/nvm) + +## Getting started on Firefox + +### 1. Set up Node + +Use node v18 (18.18) or if you use nvm follow the instructions below + +```bash +nvm install 18.18 +# or +nvm use 18.18 +``` + +### 2. Install project dependencies + +```bash +yarn setup +``` + + +### 3. Build the extension + +```bash +yarn firefox:build && yarn update-manifest:prod +``` + +### 4. Generate bundle + +```bash +yarn zip && yarn firefox:zip +``` + +You should find a xpi file named `rainbowbx.xpi` in the root folder of this repository \ No newline at end of file