rim-xmg-database-lib
v0.0.1
Published
RIM XMG database utilities (TypeScript library)
Maintainers
Readme
Installation
npm install rim-xmg-database-libUsage
import { hello, version } from 'rim-xmg-database-lib';
console.log(hello('World')); // Hello, World
console.log(version); // 0.0.1Development
Scripts:
npm run build– Clean and compile TypeScript todist.npm run lint– Lint all.tsfiles.npm run format– Apply Prettier formatting.
Publishing
The prepare script builds on install. Before publishing:
npm version patch # or minor/major
npm publishGitHub
Repository: https://github.com/Rimblehelm/rim-xmg-database-lib
rim-xmg-database-lib
Rimblehelm XMG database utilities (TypeScript library)
TypeScript library providing utilities for working with XMG database structures.
Installation
npm install rim-xmg-database-libUsage
import { hello, version } from 'rim-xmg-database-lib';
console.log(hello('World')); // Hello, World
console.log(version); // 0.0.1Development
Scripts:
npm run build– Clean and compile TypeScript todist.npm run lint– Lint all.tsfiles.npm run format– Apply Prettier formatting.
Publishing
The prepare script builds on install. Before publishing:
npm version patch # or minor/major
npm publishNotes:
- The package is configured to publish publicly to npm via
publishConfig.access = "public". - For secure publishing from GitHub Actions we recommend using GitHub's OpenID Connect (OIDC) provider rather than storing
NPM_TOKENas a secret. See setup notes below.
OIDC setup for npm publishing
- In GitHub repository settings → Actions → General, ensure OIDC is enabled for the organization / repository.
- In your npm account, add a new "OIDC" trusted identity / publisher that trusts GitHub Actions for this repository (npm provides a way to accept tokens from GitHub as a trusted publisher). Follow npm's "Use GitHub Actions to publish packages" guidance to register GitHub as a trusted provider.
- After that is configured, the
semantic-releaseworkflow (.github/workflows/semantic-release.yml) will use the OIDC token to authenticate to npm and publish without needingNPM_TOKEN.
If OIDC is not available for your npm account, semantic-release supports publishing with NPM_TOKEN stored as a repository secret. Create it in GitHub settings → Secrets → Actions, name it NPM_TOKEN, and semantic-release will use it as a fallback.
GitHub
Update USERNAME in package.json once repository is created.
License
MIT
