Skip to content

Publish releases to the Chrome Web Store automatically - #11

Merged
Eli-Zac merged 1 commit into
mainfrom
add-cws-publish
Sep 26, 2026
Merged

Eli-Zac merged 1 commit into
mainfrom
add-cws-publish

Conversation

@Eli-Zac

@Eli-Zac Eli-Zac commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a Chrome Web Store publish step to the Release workflow, run after the GitHub Release is created for each tagged version.
  • Authenticates with the existing CWS_CLIENT_ID/CWS_CLIENT_SECRET/CWS_REFRESH_TOKEN repo secrets, targets the item ID now stored in the CWS_EXTENSION_ID repo variable (helpjocjlgoieoajcballcfigoecdbmp).
  • Uploads the built zip, then calls publish; treats OK and ITEM_PENDING_REVIEW as success, fails the job on any other outcome.
  • Documents the new step in the README's Releasing section.

Test plan

  • Merge a version bump PR and confirm the Release workflow's new step succeeds and the item updates on the Chrome Web Store dashboard (or enters review).
  • Confirm workflow fails loudly if a secret/variable is missing or the API call errors.

Adds a step to the Release workflow that uploads the built zip and
publishes it via the Chrome Web Store API, using OAuth credentials
already stored as repo secrets and the item ID as a repo variable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

@Rhylanscript Rhylanscript left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

PR summary

  • Adds a Chrome Web Store publish step to the release workflow.
  • Uses the existing OAuth secret set (CWS_CLIENT_ID, CWS_CLIENT_SECRET, CWS_REFRESH_TOKEN) plus the extension ID from repo vars.
  • Uploads the same zip already built for the GitHub release, then calls publish and treats OK and ITEM_PENDING_REVIEW as success.
  • Updates the release docs in README.md to describe the new behavior.

Core changes

  • The new workflow step is gated correctly after the GitHub release step, so it only runs when the release artifact exists.
  • The script fails loudly on missing/invalid OAuth token, failed upload, or unexpected publish status. That’s the right failure mode for a release automation job.
  • The workflow explicitly checks for the Chrome Web Store response states it considers success, which reduces false positives.

Conclusion

PR is low risk and fine to merge

@Rhylanscript Rhylanscript added the documentation Improvements or additions to documentation label Sep 26, 2026
@Eli-Zac
Eli-Zac merged commit 27b9f41 into main Sep 26, 2026
1 check passed
@Eli-Zac
Eli-Zac deleted the add-cws-publish branch September 26, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants