Repository
Current version released
8 months ago
Versions
@your-scope/hello-world-ts
Tiny TypeScript “hello world” library published on npm.
Install
npm install @your-scope/hello-world-tsUsage
import hello from "@your-scope/hello-world-ts";
console.log(hello()); // "Hello, world!"Scripts
npm run build: Build todist(CJS + ESM + types)npm test: Placeholder test
Release & Publish
This repo includes two GitHub Actions:
- PR title check (
.github/workflows/pr-title.yml) validates PR titles using Conventional Commits. - Publish flow (
.github/workflows/publish.yml) publishes to npm on GitHub Release publish or push of avX.Y.Ztag.
Setup
- Create an npm token with publish rights and add it as a repository secret named
NPM_TOKEN. - Update
package.jsonfields:name,author,repository,bugs,homepage. - Optionally, adjust Node version in the workflow.
Trigger a publish
- Create and push a tag like
v0.1.0, or - Create a GitHub Release (Publish release), or
- Manually dispatch the workflow.
The workflow builds with Node 20 and publishes with
--access public --provenance.