add README: installation/publishing

This commit is contained in:
Brian Sakal
2023-05-07 23:22:29 -04:00
parent de370a32ed
commit 3895df69a2
+18
View File
@@ -0,0 +1,18 @@
# Installation/Publishing
To install this package:
```bash
yarn config set '@torahanytime:registry' 'https://git.sakal.us/api/packages/brian/npm/'
# or use `.yarnrc`: echo '"@torahanytime:registry" "https://git.sakal.us/api/packages/brian/npm/"' >> .yarnrc
# or use `.npmrc`: echo '@torahanytime:registry=https://git.sakal.us/api/packages/brian/npm/' >> .npmrc
yarn add @sakal/fsm
```
To publish a new version of this package:
```bash
yarn config set -- '//git.sakal.us/api/packages/brian/npm/:_authToken' "${GITEA_AUTH_TOKEN}"
yarn login --scope sakal
yarn build && yarn publish
```