Skip to content

Commit

Permalink
Merge pull request #92 from shelfio/feature/PREVIEWAPI-99-docs-how-to…
Browse files Browse the repository at this point in the history
…-publish

PREVIEWAPI-99 Document how to publish
  • Loading branch information
Siloss authored Dec 15, 2021
2 parents 990ec3f + f13b2ee commit 400dd74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 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,12 @@ 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`, follow interactive UI. Please select appropriate version bump according to [semver](https://semver.org/).

- After redirect to the prepared release of the early published package just press button `Publish release`

## License

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

0 comments on commit 400dd74

Please sign in to comment.