Publish plugin to Forgejo npm registry on version tags #2
Loading…
Reference in a new issue
No description provided.
Delete branch "forgejo-publish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
filesfield to package.json so the gitignoreddist/client bundle ships in the npm tarball (without it, the published plugin is broken).forgejo/workflows/publish.yml) that runs on everyv*tag:npm ci→npm test→npm run build→ verify package.json version matches the tag → publish to the Forgejo npm registry (ownertroed).npmrcprerequisite), admin-panel/local-path alternatives, and a "Publishing a new release" section (tag flow + OWNER_TOKEN setup)Test Plan
npx jest(15 suites / 93 tests passing)npm run buildnpm pack --dry-runships dist/, src/, main.js, README.md, package.jsongit tag v0.0.1 && git push --tagstriggers the publish workflow (manual)