@syware/jlib 0.1.0 → 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.
Files changed (2) hide show
  1. package/README.md +23 -6
  2. package/package.json +9 -3
package/README.md CHANGED
@@ -97,14 +97,31 @@ component. Conventions for contributors are in [CLAUDE.md](CLAUDE.md).
97
97
 
98
98
  ## Releasing
99
99
 
100
- A GitHub release publishes the package to npm: the `Publish to npm` workflow checks, builds and publishes it through
101
- npm's trusted publishing (no token; the package gets a provenance statement).
100
+ Pushing a version tag releases the package: the `Publish to npm` workflow checks and builds it, stages it on npm
101
+ through trusted publishing (no token; the package gets a provenance statement), then creates the GitHub release with
102
+ the package attached. The staged version becomes public once a maintainer approves it with their two-factor
103
+ authentication.
102
104
 
103
- 1. `npm version patch` (or `minor`, `major`): bumps package.json and the lockfile, commits, tags `vX.Y.Z`.
104
- 2. `git push --follow-tags`.
105
- 3. On GitHub, draft a release from that tag and publish it.
105
+ ```bash
106
+ npm version patch
107
+ ```
108
+
109
+ ```bash
110
+ git push --follow-tags
111
+ ```
112
+
113
+ `npm version` (or `minor`, `major`) bumps package.json and the lockfile, commits and tags `vX.Y.Z`. The workflow
114
+ refuses a tag that is not the version in package.json.
106
115
 
107
- The workflow refuses a release whose tag is not the version in package.json.
116
+ When the run is done (its summary page shows what was staged), approve the version:
117
+
118
+ ```bash
119
+ npm stage list @syware/jlib
120
+ ```
121
+
122
+ ```bash
123
+ npm stage approve <stage-id>
124
+ ```
108
125
 
109
126
  ## Made by SyWare
110
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syware/jlib",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "A tree-shakeable component library on Jadis and native Web Components, organised in atomic design",
5
5
  "keywords": [
6
6
  "web-components",
@@ -23,7 +23,9 @@
23
23
  "bugs": {
24
24
  "url": "https://github.com/bioleyl/jlib/issues"
25
25
  },
26
- "files": ["dist"],
26
+ "files": [
27
+ "dist"
28
+ ],
27
29
  "main": "./dist/index.js",
28
30
  "module": "./dist/index.js",
29
31
  "types": "./dist/index.d.ts",
@@ -55,7 +57,11 @@
55
57
  "./tokens.css": "./dist/tokens.css",
56
58
  "./package.json": "./package.json"
57
59
  },
58
- "sideEffects": ["./dist/all.js", "./dist/*.css", "./src/all.ts"],
60
+ "sideEffects": [
61
+ "./dist/all.js",
62
+ "./dist/*.css",
63
+ "./src/all.ts"
64
+ ],
59
65
  "publishConfig": {
60
66
  "access": "public"
61
67
  },