@dori-ai/dori-pdp-widget 0.6.56 → 0.6.58

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
@@ -69,6 +69,31 @@ npm run build
69
69
 
70
70
  This will create a `dist` folder with the production-ready widget files.
71
71
 
72
+ ### Publishing (`@dori-ai/dori-pdp-widget`)
73
+
74
+ ```bash
75
+ npm run publish:dev:scoped # any branch -> <version>-dev.<timestamp> under @dev
76
+ npm run publish:prod:scoped # main only -> bumps the patch, publishes @latest
77
+ npm run publish:prod:dry # shows the version a prod publish would take
78
+ ```
79
+
80
+ The same script runs in CI via `.github/workflows/publish.yml`, authenticated
81
+ with npm trusted publishing (per-run OIDC token, no npm token anywhere):
82
+
83
+ ```bash
84
+ gh workflow run publish.yml -f channel=dev --ref dev -R DoriService/dori-pdp-widget
85
+ gh workflow run publish.yml -f channel=prod --ref main -R DoriService/dori-pdp-widget
86
+ ```
87
+
88
+ The prod run aligns `package.json` with the highest version on the registry,
89
+ bumps the patch, publishes `@latest` and commits the bump back to `main`. Pull
90
+ before a local prod publish afterwards or the next bump collides. The
91
+ trusted-publisher entry on npmjs.com is keyed on the workflow filename;
92
+ renaming `publish.yml` breaks CI publishing until it is updated.
93
+
94
+ CI releases carry no npm provenance: npm only accepts a provenance bundle from
95
+ a public source repository, and this repo is private.
96
+
72
97
  ### Development vs Production
73
98
 
74
99
  - **Development**: `npm run dev` - Uses direct DOM rendering for easier debugging