Adopt the four-workflow CI/release template and CHANGELOG #3
Labels
No labels
NaNs
area/audio
area/build
area/docs
area/dsh
area/engine
area/security
area/ui
needs-operator
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-whale-noises#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Goal
Adopt the house four-workflow template now, while the repo is small, so every later merge is checked and the first release is a tag away.
Scope
.forgejo/workflows/{ci,publish,publish-npmjs,release}.ymlfromdsh-plugins/dsh-gitea, adapted to this package.ci.yml: on push tomaster+workflow_dispatch; runsnpm ci(or install) andnpm run check.publish.yml: on tagv*+ dispatch; assert tag ==v<package.json version>; publish to the Forgejo registry; skip an existing version with exit 0.publish-npmjs.yml: same artifact to npmjs; skip cleanly whileNPMJS_TOKENis absent.release.yml: create the Forgejo release page fromCHANGELOG.md; attach the tarball; idempotent.CHANGELOG.mdwith## [Unreleased]and a placeholder## [0.1.0]section.Acceptance
pull_requesttrigger anywhere (runner has the host Docker socket).masterrunsci.ymlgreen; manual dispatch ofpublish.ymlbehaves as a dry run / no-op, not a publish.Notes
npm run checkmust exist). Part of M0.Done in
f665918. Four workflows adopted (ci,publish,publish-npmjs,release), nopull_requesttrigger, tag check, idempotent publish/release, notes fromCHANGELOG.md. CI run #1 is green: https://git.pvlb.dev/dsh-plugins/dsh-whale-noises/actions/runs/1