Skip to content

Commit 6dc7400

Browse files
committed
Fix Chrome Web Store deployment - install CLI before use
- Add chrome-webstore-upload-cli installation step in workflow - Ensure CLI is available before running deploy:chrome script - Bump version to 1.6.7 for CLI installation fix
1 parent cdeea58 commit 6dc7400

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

β€Ž.github/workflows/ci-cd.ymlβ€Ž

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,25 @@ jobs:
299299
CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }}
300300
CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }}
301301
CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }}
302+
run: |
303+
echo "πŸš€ Deploying to Chrome Web Store using OAuth2 (Primary Method)"
304+
echo "πŸ“¦ Extension ID: $CHROME_EXTENSION_ID"
305+
echo "πŸ“ ZIP Path: $CHROME_ZIP_PATH"
306+
307+
# Install chrome-webstore-upload-cli for V2 API compatibility
308+
npm install chrome-webstore-upload-cli
309+
310+
# Install dependencies and deploy with OAuth2
311+
npm run deploy:chrome
312+
DEPLOY_EXIT_CODE=$?
313+
314+
if [ $DEPLOY_EXIT_CODE -eq 0 ]; then
315+
echo "CHROME_DEPLOY_SUCCESS=true" >> $GITHUB_OUTPUT
316+
echo "βœ… OAuth2 deployment succeeded"
317+
else
318+
echo "CHROME_DEPLOY_SUCCESS=false" >> $GITHUB_OUTPUT
319+
echo "❌ OAuth2 deployment failed with exit code: $DEPLOY_EXIT_CODE"
320+
fi
302321
continue-on-error: true
303322

304323
- name: Deploy to Chrome Web Store (Service Account - Fallback)

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blog-link-analyzer",
3-
"version": "1.6.6",
3+
"version": "1.6.7",
44
"description": "Detects blog posts and extracts linked blog content with titles and authors",
55
"main": "background/service-worker.js",
66
"scripts": {

0 commit comments

Comments
Β (0)