capability-worker 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -41,6 +41,12 @@ pnpm exec capability-build-assets --validate
41
41
  pnpm exec capability-validate
42
42
  ```
43
43
 
44
+ ## Publishing
45
+
46
+ Pushes to `main` are released by `.github/workflows/publish.yml`. The workflow prepares a new `v<version>` tag and publishes to npm through Trusted Publishing in the same GitHub Actions run, without an npm token.
47
+
48
+ Configure the npm package Trusted Publisher before relying on the workflow. The required npmjs.com settings are documented in [trusted-publishing.md](https://github.com/Iliasnolsson/capability-worker/blob/main/trusted-publishing.md).
49
+
44
50
  ## Mental Model
45
51
 
46
52
  A capability worker has two parts:
File without changes
File without changes
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "capability-worker",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Shared toolkit for Cloudflare Workers that expose CLI-like capabilities over HTTP.",
5
5
  "type": "module",
6
+ "packageManager": "pnpm@11.9.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/Iliasnolsson/capability-worker.git"
10
+ },
6
11
  "sideEffects": false,
7
12
  "files": [
8
13
  "dist",
@@ -10,6 +15,15 @@
10
15
  "README.md",
11
16
  "LICENSE"
12
17
  ],
18
+ "scripts": {
19
+ "clean": "rm -rf dist",
20
+ "build": "pnpm clean && rollup -c",
21
+ "typecheck": "tsc --noEmit",
22
+ "test": "vitest run",
23
+ "prepack": "pnpm build",
24
+ "pack:check": "pnpm build && pnpm pack --dry-run",
25
+ "publish:npm": "pnpm typecheck && pnpm test && pnpm pack:check && pnpm publish --access public"
26
+ },
13
27
  "bin": {
14
28
  "capability-build-assets": "dist/node/build-capability-assets-cli.js",
15
29
  "capability-validate": "dist/node/validate-cli.js"
@@ -66,13 +80,5 @@
66
80
  "rollup-plugin-esbuild": "^6.0.0",
67
81
  "typescript": "^5.9.0",
68
82
  "vitest": "^4.1.0"
69
- },
70
- "scripts": {
71
- "clean": "rm -rf dist",
72
- "build": "pnpm clean && rollup -c",
73
- "typecheck": "tsc --noEmit",
74
- "test": "vitest run",
75
- "pack:check": "pnpm build && pnpm pack --dry-run",
76
- "publish:npm": "pnpm typecheck && pnpm test && pnpm pack:check && pnpm publish --access public"
77
83
  }
78
- }
84
+ }