cws-release 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +4 -4
- package/README.md +3 -9
- package/SKILL.md +2 -2
- package/package.json +4 -4
- package/src/init.mjs +1 -1
package/INSTALL.md
CHANGED
|
@@ -19,7 +19,7 @@ npx -y cws-release -- cws release # every release
|
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Until `cws-release` is on npm, use
|
|
22
|
-
`npx -y --package=github:
|
|
22
|
+
`npx -y --package=github:XCreativeStudio/cws-release -- cws <command>`.
|
|
23
23
|
|
|
24
24
|
The bare `npx -y <spec> <args>` form does **not** work here — npx passes `init`
|
|
25
25
|
to `cws` as if it were a package name, and you get the `--help` text instead.
|
|
@@ -57,7 +57,7 @@ npm run cws release
|
|
|
57
57
|
## CI / as a GitHub Action
|
|
58
58
|
|
|
59
59
|
```yaml
|
|
60
|
-
- uses:
|
|
60
|
+
- uses: XCreativeStudio/cws-release@v1
|
|
61
61
|
with:
|
|
62
62
|
command: release
|
|
63
63
|
env:
|
|
@@ -75,7 +75,7 @@ steps:
|
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
77
|
mkdir -p .agents/skills
|
|
78
|
-
git clone --depth 1 https://github.com/
|
|
78
|
+
git clone --depth 1 https://github.com/XCreativeStudio/cws-release.git .agents/skills/chrome-web-store-publish
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
The agent then reads `SKILL.md` and runs the npx or installed form from
|
|
@@ -89,4 +89,4 @@ repository that has already done A or B the agent needs no extra step.
|
|
|
89
89
|
The npm name **`cws-publish` belongs to an unrelated project**, so never run
|
|
90
90
|
`npx cws-publish` or `npm i -g cws-publish` — you would install someone else's
|
|
91
91
|
code. This CLI is published as **`cws-release`**. If a release is not on npm yet,
|
|
92
|
-
fall back to the `github:` specifier (`github:
|
|
92
|
+
fall back to the `github:` specifier (`github:XCreativeStudio/cws-release`).
|
package/README.md
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Upload and publish Chrome extensions with the **Chrome Web Store API v2**, from
|
|
4
4
|
one zero-dependency Node CLI.
|
|
5
5
|
|
|
6
|
-
> **API v1 is gone.** Google supports the old Chrome Web Store API only until
|
|
7
|
-
> **2026-10-15** ([announcement](https://developer.chrome.com/blog/cws-api-v2)).
|
|
8
|
-
> Tools built on `chromewebstore/v1.1` stop working after that date; this one
|
|
9
|
-
> talks to `/v2/` only. If you are migrating, [docs/COMPARISON.md](docs/COMPARISON.md)
|
|
10
|
-
> covers what changed and what v2 unlocks.
|
|
11
|
-
|
|
12
6
|
```sh
|
|
13
7
|
cws check # prove the credentials work, then print the item status
|
|
14
8
|
cws release # upload the zip, submit for review, print the result
|
|
@@ -45,8 +39,8 @@ cws release
|
|
|
45
39
|
```
|
|
46
40
|
|
|
47
41
|
Until `cws-release` is on npm, use the GitHub specifier instead:
|
|
48
|
-
`npx -y --package=github:
|
|
49
|
-
`npm i -g github:
|
|
42
|
+
`npx -y --package=github:XCreativeStudio/cws-release -- cws release` /
|
|
43
|
+
`npm i -g github:XCreativeStudio/cws-release`.
|
|
50
44
|
|
|
51
45
|
Run `init` once in each extension repository: it writes a `.cws.json` template
|
|
52
46
|
and copies the agent skill into `.agents/skills/chrome-web-store-publish/`.
|
|
@@ -156,7 +150,7 @@ As a GitHub Action (no install step, `result` and `code` as outputs):
|
|
|
156
150
|
- uses: actions/setup-node@v4
|
|
157
151
|
with:
|
|
158
152
|
node-version: 22 # the CLI needs Node ≥ 22; the action checks this
|
|
159
|
-
- uses:
|
|
153
|
+
- uses: XCreativeStudio/cws-release@v1
|
|
160
154
|
with:
|
|
161
155
|
command: release
|
|
162
156
|
zip: .output/*-chrome.zip
|
package/SKILL.md
CHANGED
|
@@ -25,7 +25,7 @@ correctly. Run `cws init` once per repository: it writes the `.cws.json`
|
|
|
25
25
|
template and copies this skill into `.agents/skills/` when missing. Do not
|
|
26
26
|
retry with a bare `npx cws-publish` — that name on npm is another project. The
|
|
27
27
|
package is `cws-release`; if a release is not on npm yet, use
|
|
28
|
-
`--package=github:
|
|
28
|
+
`--package=github:XCreativeStudio/cws-release --`.
|
|
29
29
|
|
|
30
30
|
A clone whose `cws.mjs --help` shows no `init` line predates `init`; run it with
|
|
31
31
|
the npx form above.
|
|
@@ -141,7 +141,7 @@ Prefer the Action — it installs the CLI and returns `result` (the JSON
|
|
|
141
141
|
envelope) and `code` (the error code) as outputs:
|
|
142
142
|
|
|
143
143
|
```yaml
|
|
144
|
-
- uses:
|
|
144
|
+
- uses: XCreativeStudio/cws-release@v1
|
|
145
145
|
with:
|
|
146
146
|
command: release
|
|
147
147
|
zip: .output/*-chrome.zip
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cws-release",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Zero-dependency CLI for the Chrome Web Store API v2: upload, publish and check extension status with a service account.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": { "cws": "./cws.mjs" },
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"keywords": ["chrome-web-store", "chrome-extension", "publish", "cli", "devtools", "ci", "agent"],
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"publishConfig": { "access": "public" },
|
|
19
|
-
"homepage": "https://github.com/
|
|
20
|
-
"bugs": { "url": "https://github.com/
|
|
21
|
-
"repository": { "type": "git", "url": "git+https://github.com/
|
|
19
|
+
"homepage": "https://github.com/XCreativeStudio/cws-release#readme",
|
|
20
|
+
"bugs": { "url": "https://github.com/XCreativeStudio/cws-release/issues" },
|
|
21
|
+
"repository": { "type": "git", "url": "git+https://github.com/XCreativeStudio/cws-release.git" }
|
|
22
22
|
}
|
package/src/init.mjs
CHANGED
|
@@ -42,7 +42,7 @@ export function init({ cwd = process.cwd(), force = false, log = (line) => proce
|
|
|
42
42
|
if (!existsSync(configPath) || defaultsOnly(configPath)) {
|
|
43
43
|
log(`\nnext fill publisherId and itemId in ${CONFIG_FILE} (never the key)`);
|
|
44
44
|
}
|
|
45
|
-
log(' check npx -y --package=github:
|
|
45
|
+
log(' check npx -y --package=github:XCreativeStudio/cws-release -- cws check');
|
|
46
46
|
return 0;
|
|
47
47
|
}
|
|
48
48
|
|