(For admins only)
You need the AWS CLI installed and configured with an R2 API token (set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY). Your Cloudflare account ID must be set via the CLOUDFLARE_ACCOUNT_ID environment variable. The script constructs both the default endpoint (https://<id>.r2.cloudflarestorage.com) and the EU jurisdiction endpoint (https://<id>.eu.r2.cloudflarestorage.com) automatically.
You also need write access to the npm repository of @micrio/client.
To publish to both the hosted JS and NPM with an automatic version bump:
# Make sure you are logged in to NPM
$ npm login
$ pnpm run publish -- --npm --otp [one-time-password-for-npm]After a successful publish, create a new release at https://github.com/Q42/Micrio.Client/releases/new :
- Create a tag matching the version just published (e.g.
v7.0.1) - Auto-generate release notes and add what has changed
- Publish the release
- Commit the post-publish version bumped
package.jsonfiles
To update only the hosted JS, omit -- --npm.
Generated documentation (TypeDoc) is managed via:
$ pnpm run docsThis runs the TypeDoc pipeline defined in tsconfig.docs.json.