Skip to content

Unknown-Creators-Team/ScriptBoxMC

Repository files navigation

ScriptBoxMC

ScriptAPI addon template generated by scriptup.

Local library structure

  • package/main.ts: local package source
  • src/main.ts: sample usage that imports from ScriptBoxMC

Setup

npm install

Publish

First publish (manual)

  1. Update name and version in package.json (current import alias: ScriptBoxMC).
  2. Build and publish:
npm run build
npm publish --access public

Subsequent publishes (automated via GitHub Actions)

Tip

Using npm Trusted Publishers removes the need to manage NPM_TOKEN in GitHub secrets.

  1. On npmjs.com, open your package → SettingsTrusted Publishers.

  2. Add a trusted publisher:

    • GitHub Actions as the provider
    • Organization or user: Enter your GitHub username or organization name
    • Repository: Enter the repository name where the package is located
    • Workflow filename: publish.yml
    • Environment name: Keep empty
  3. Once configured, delete the NPM_TOKEN secret from GitHub repository settings (not needed anymore).

  4. Bump version in package.json, then create a GitHub release → .github/workflows/publish.yml runs automatically.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors