Base tsconfig for lichtblick projects.
To use, run npm i --save-dev @lichtblick/tsconfig, then extend your tsconfig.json like so:
{
"extends": "@lichtblick/tsconfig/base",
"include": ["./src/**/*"],
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
}
}Two GitHub Actions workflows are involved:
- Auto Bump Version (
.github/workflows/bump-version.yml) runs on every push tomain. It bumps thepatchversion inpackage.jsonand commits the change back tomain. So merging a PR keeps the version moving automatically — but it does not publish to npm. - Publish to NPM (
.github/workflows/release.yml) runs only when a GitHub Release is published. That event is what triggersnpm publish.
# 1. update local main (includes the auto-bumped version)
git checkout main && git pull
# 2. read the current version to tag against
tag="v$(node -p "require('./package.json').version")" && echo "$tag"
# 3. create + publish a GitHub Release for that version
git tag "$tag" && git push origin "$tag"
gh release create "$tag" --generate-notesPublishing the Release (step 3, via gh or the GitHub UI) emits the
release: published event that runs the publish workflow.
Note: the auto-bump only ever does a
patchbump. For a breaking change, manually bump themajor(orminor) inpackage.jsonbefore releasing so the published version reflects that correctly.