bitsnap-payloadcms 0.1.1 → 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.
Files changed (2) hide show
  1. package/README.md +12 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -19,12 +19,6 @@ pnpm add bitsnap-payloadcms
19
19
  npm install bitsnap-payloadcms
20
20
  ```
21
21
 
22
- > **Not on npm yet?** Install the published tarball from the GitHub release:
23
- >
24
- > ```bash
25
- > pnpm add https://github.com/emmems/bitsnap-payloadcms/releases/download/v0.1.1/bitsnap-payloadcms-0.1.1.tgz
26
- > ```
27
-
28
22
  ### 1. Register the plugin
29
23
 
30
24
  ```ts
@@ -257,14 +251,20 @@ If the plugin used to live inside your application (for example
257
251
 
258
252
  ## Publishing
259
253
 
260
- Releases are published to npm by GitHub Actions:
254
+ Releases are published to npm by GitHub Actions with
255
+ [npm trusted publishing](https://docs.npmjs.com/trusted-publishers): the workflow
256
+ mints a short-lived OIDC token that npm exchanges for a publish token bound to
257
+ this repository. No npm token is stored in GitHub, so there is nothing to rotate.
258
+
259
+ To publish:
261
260
 
262
- 1. Create an npm token with **publish** scope (an automation token or a granular token with the
263
- `read-package` + `write-package` permissions).
264
- 2. Add it to the repository as a secret named **`NPM_TOKEN`**.
265
- 3. Publish by creating a GitHub release — or by running the `Publish` workflow manually.
261
+ 1. Bump the version in `package.json` and commit.
262
+ 2. Tag the commit and create the GitHub release — creating the release is what
263
+ starts the publish. The `Publish` workflow can also be run manually, with an
264
+ optional npm dist-tag.
266
265
 
267
- The workflow runs `pnpm build`, then `npm publish --provenance --access public`.
266
+ The workflow runs `pnpm run typecheck`, `pnpm run build`, then
267
+ `npm publish --provenance --access public`.
268
268
 
269
269
  ## License
270
270
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitsnap-payloadcms",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Bitsnap plugin for Payload CMS 3 — product sync, admin product manager and product picker for Payload-based storefronts.",
5
5
  "keywords": [
6
6
  "bitsnap",