Skip to content

Commit 8553fa6

Browse files
vveerrggclaude
andcommitted
feat: add Chrome Web Store upload CLI and npm scripts
Adds chrome-webstore-upload-cli as dev dep with scripts: - npm run cws:upload — upload zip to CWS - npm run cws:publish — publish last upload - npm run cws:release — upload + publish in one step Requires CLIENT_ID, CLIENT_SECRET, REFRESH_TOKEN env vars. See .env.example for template. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d88c657 commit 8553fa6

4 files changed

Lines changed: 146 additions & 0 deletions

File tree

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Chrome Web Store API credentials
2+
# See: https://github.com/nicedoc/chrome-webstore-upload-keys
3+
CLIENT_ID=
4+
CLIENT_SECRET=
5+
REFRESH_TOKEN=

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ xcuserdata/
1717
# Distribution builds and zips
1818
distros/
1919
*.zip
20+
21+
# Chrome Web Store credentials
22+
.env

package-lock.json

Lines changed: 134 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
"watch": "./build.js watch",
1919
"watch-tailwind": "tailwindcss -i './src/options.css' -o './src/options.build.css' --watch",
2020
"clean": "rm -f ./src/*.build.js ./src/*.build.css ./src/**/*.build.js && rm -rf distros",
21+
"cws:upload": "chrome-webstore-upload upload --source distros/nostrkey-chrome-v$npm_package_version.zip --extension-id cggakcmbihnpmcddkkfmoglgaocnmaop",
22+
"cws:publish": "chrome-webstore-upload publish --extension-id cggakcmbihnpmcddkkfmoglgaocnmaop",
23+
"cws:release": "npm run cws:upload && npm run cws:publish",
2124
"test": "echo \"Error: no test specified\" && exit 1"
2225
},
2326
"author": "Humanjava Enterprises Inc",
@@ -32,6 +35,7 @@
3235
},
3336
"devDependencies": {
3437
"@tailwindcss/forms": "^0.5.9",
38+
"chrome-webstore-upload-cli": "^3.5.0",
3539
"esbuild": "^0.27.3",
3640
"prettier": "^3.3.3",
3741
"sharp": "^0.34.5",

0 commit comments

Comments
 (0)