diff --git a/.github/workflows/npm-publish-next.yml b/.github/workflows/npm-publish-next.yml
index a1a7384..cf0de17 100644
--- a/.github/workflows/npm-publish-next.yml
+++ b/.github/workflows/npm-publish-next.yml
@@ -11,9 +11,17 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
- node-version: '20'
+ node-version: '22'
registry-url: https://registry.npmjs.org/
- - run: npm ci
+ - run: npm ci --ignore-scripts
+ - run: npm run build
- run: npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
+ - name: Create Git Tag
+ run: |
+ VERSION=$(node -p "require('./package.json').version")
+ git config user.name "GitHub Actions"
+ git config user.email "actions@github.com"
+ git tag v$VERSION
+ git push origin v$VERSION
diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml
index 17d58ac..14ccea0 100644
--- a/.github/workflows/npm-publish.yml
+++ b/.github/workflows/npm-publish.yml
@@ -15,7 +15,15 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
- node-version: '20'
+ node-version: '22'
registry-url: https://registry.npmjs.org/
- - run: npm ci
+ - run: npm ci --ignore-scripts
+ - run: npm run build
- run: npm publish
+ - name: Create Git Tag
+ run: |
+ VERSION=$(node -p "require('./package.json').version")
+ git config user.name "GitHub Actions"
+ git config user.email "actions@github.com"
+ git tag v$VERSION
+ git push origin v$VERSION
diff --git a/.gitignore b/.gitignore
index 91d3f84..f3850ba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
node_modules/
-.npmrc
+
.DS_Store
+dist/
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 0000000..97b895e
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1 @@
+ignore-scripts=true
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 0000000..850238e
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,18 @@
+{
+ "trailingComma": "es5",
+ "tabWidth": 2,
+ "useTabs": false,
+ "semi": true,
+ "singleQuote": true,
+ "bracketSameLine": false,
+ "arrowParens": "always",
+ "jsxSingleQuote": false,
+ "printWidth": 128,
+ "quoteProps": "as-needed",
+ "bracketSpacing": true,
+ "svelteSortOrder": "options-scripts-styles-markup",
+ "svelteStrictMode": false,
+ "svelteAllowShorthand": true,
+ "svelteIndentScriptAndStyle": true,
+ "htmlWhitespaceSensitivity": "ignore"
+}
diff --git a/README.md b/README.md
index 6bcd0ba..248f4a3 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
A helper module to connect third-party modules to RealityHub.
-## Support Requests
+## Support Requests
This repository is for distribution only. For support please visit: [Zero Density Support](https://support.zerodensity.io).
@@ -21,7 +21,7 @@ The client can be bundled for browsers with a bundling tool (e.g. rollup).
### Connecting to Hub
```js
-const { BrokerClient } = require('@zerodensity/realityhub-api');
+import { BrokerClient } from '@zerodensity/realityhub-api';
BrokerClient.initModule({
menuTitle: '