-
Notifications
You must be signed in to change notification settings - Fork 0
Publishing and Releases
github-actions[bot] edited this page Jun 3, 2026
·
6 revisions
This page documents the release workflow for Interactive Surface CSS.
Primary path: GitHub Release -> GitHub Actions -> npm publish.
Workflow file:
.github/workflows/npm-publish.yml
Add this secret in GitHub repository settings:
-
NPM_TOKEN: npm token with publish rights for the package
- Update code and docs.
- Bump
versioninpackage.json. - Update
CHANGELOG.md. - Run local checks:
npm run validate- Push changes to
main. - Create and publish a GitHub Release for that version tag (for example
v1.2.3). - Confirm
Publish to npmworkflow succeeds. - Verify distribution:
https://registry.npmjs.org/interactive-surface-csshttps://cdn.jsdelivr.net/npm/interactive-surface-css@<version>/interactive-surface.csshttps://unpkg.com/interactive-surface-css@<version>/interactive-surface.css
If GitHub Actions is unavailable, publish from a trusted local machine:
npm adduser
npm publish --access publicThe prepublishOnly guard intentionally avoids browser downloads so npm publish does not stall on a fresh Playwright cache. Use npm run validate for the full local release check, including Playwright browser installation and tests.
Use semantic versioning:
-
x.y.zpatch for fixes - minor for backward-compatible additions
- major for breaking behavior
For each release, include:
- summary of changes
- API/token behavior changes
- accessibility notes
- migration notes for breaking changes