Skip to content

Commit

Permalink
docs: ci/cd creds for ext publishing (#273)
Browse files Browse the repository at this point in the history
* docs: ci/cd creds for ext publishing

Jotting down some notes while memory is fresh.

* satisfy linter

---------

Co-authored-by: Tal Derei <[email protected]>
  • Loading branch information
conorsch and TalDerei authored Jan 24, 2025
1 parent 7b26181 commit 49ed717
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,25 @@ Main merges will also deploy dapp on Firebase. Workflows can be [seen here](../.

If a release is made in the repo, the extension code will be submitted for publishing
to the Chrome Web Store. See more in [publishing](./publishing.md).

### Creds for publishing

Publishing to the webstore requires three (3) credentials to be present in CI:

1. Google app oauth client_id
2. Google app oauth client_secret
3. Google app refresh_token

If an extension publishing job fails with an HTTP 429, it's likely either:

1. unreviewed drafts in the developer web ui, or
2. an expired "refresh token" being used in CI

If you need to update 2:

1. Follow this guide: https://github.com/fregante/chrome-webstore-upload-keys
2. Download JSON file with client_id and client_secret (constituting 2/3 of the creds you need)
3. `node cli.js` in that repo, follow the interactive tool
4. Edit the CI secrets in this repo with the new client_id, client_secret, and refresh_token values

Then rerun the failed publishing job, and confirm it passes.

0 comments on commit 49ed717

Please sign in to comment.