Skip to content

Commit f897c3b

Browse files
committed
Fix Pushing Staging Extension To Public
Apparently the github action just assumes always public and it doesn't have a way to change the behaviour. Switch to the cli to enable such behaviour. ref CSF-1080
1 parent 8e0eb37 commit f897c3b

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/submit_chrome.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ jobs:
2929
CHROME_EXT_PATH=$(find assets -name "extension-*-chrome.zip" | head -n 1)
3030
echo "chrome_extension_path=$CHROME_EXT_PATH" >> $GITHUB_OUTPUT
3131
32-
- name: Chrome Web Store Publish
33-
uses: browser-actions/release-chrome-extension@v0.2.1
34-
with:
35-
extension-id: ${{ secrets.CHROME_EXTENSION_ID }}
36-
extension-path: ${{ steps.find-path.outputs.chrome_extension_path }}
37-
oauth-client-id: ${{ secrets.OAUTH_CLIENT_ID }}
38-
oauth-client-secret: ${{ secrets.OAUTH_CLIENT_SECRET }}
39-
oauth-refresh-token: ${{ secrets.OAUTH_REFRESH_TOKEN }}
32+
- name: Publish to Chrome Web Store (Staging)
33+
env:
34+
# The CLI automatically looks for these exact environment variables
35+
EXTENSION_ID: ${{ secrets.STAGING_CHROME_EXTENSION_ID }}
36+
CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
37+
CLIENT_SECRET: ${{ secrets.OAUTH_CLIENT_SECRET }}
38+
REFRESH_TOKEN: ${{ secrets.OAUTH_REFRESH_TOKEN }}
39+
run: |
40+
npx chrome-webstore-upload-cli@3 \
41+
--source ./staging-extension.zip \
42+
--trusted-testers
4043

0 commit comments

Comments
 (0)