Skip to content

Commit

Permalink
docs: PREVIEWAPI-99 document how to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Siloss committed Dec 15, 2021
1 parent 990ec3f commit f440898
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const {uploadPDF, getJWTForDocumentPreview} = require('@shelf/pspdfkit-ssr');
const documentId = await uploadPDF({
documentId: 'some-custom-document-id',
fileStream: createReadStream('./file.pdf'),
fileSize: 1024
fileSize: 1024,
});

const jwt = getJWTForDocumentPreview(documentId);
Expand All @@ -34,6 +34,10 @@ Unlike PSPDFKit server, it catches errors when document with provided ID was alr
See [Client Authentication](https://pspdfkit.com/guides/server/current/pspdfkit-server/client-authentication/)
section of PSPDFKit documentation for details.

## Publish

Run `sudo npx np --release-draft-only`, follow interactive UI. Please select appropriate version bump according to [semver](https://semver.org/).

## License

MIT © [Shelf](https://shelf.io)

0 comments on commit f440898

Please sign in to comment.