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.
- package/README.md +12 -12
- 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.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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
|
|
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