-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firefox release workflow fixes, readme (#1515)
- Loading branch information
1 parent
6094a6e
commit 8f1e232
Showing
6 changed files
with
52 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: [email protected] | ||
add: '*.json' | ||
- name: Create Sentry release | ||
uses: getsentry/action-release@v1 | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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: [email protected] | ||
add: '*.json' | ||
# - name: Zip it | ||
# run: yarn firefox:zip | ||
# - name: Submit to the firefox addons store | ||
# uses: PlasmoHQ/[email protected] | ||
# with: | ||
# artifact: ./rainbowbx.xpi | ||
# keys: ${{ secrets.BPP_KEYS_PROD_FIREFOX }} | ||
- name: Create Sentry release | ||
uses: getsentry/action-release@v1 | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |