Adopt the four-workflow CI/release template and CHANGELOG #3

Closed
opened 2026-10-25 14:57:49 +00:00 by dsh · 1 comment
Owner

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

  • Copy .forgejo/workflows/{ci,publish,publish-npmjs,release}.yml from dsh-plugins/dsh-gitea, adapted to this package.
  • ci.yml: on push to master + workflow_dispatch; runs npm ci (or install) and npm run check.
  • publish.yml: on tag v* + 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 while NPMJS_TOKEN is absent.
  • release.yml: create the Forgejo release page from CHANGELOG.md; attach the tarball; idempotent.
  • CHANGELOG.md with ## [Unreleased] and a placeholder ## [0.1.0] section.

Acceptance

  • No pull_request trigger anywhere (runner has the host Docker socket).
  • First push to master runs ci.yml green; manual dispatch of publish.yml behaves as a dry run / no-op, not a publish.
  • Re-running any tag workflow does not fail or duplicate artifacts.

Notes

  • Template rationale and rules: bootcamp "Shipping: CI, tags and releases".
  • Depends on #1 (npm run check must exist). Part of M0.
## 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 - [ ] Copy `.forgejo/workflows/{ci,publish,publish-npmjs,release}.yml` from `dsh-plugins/dsh-gitea`, adapted to this package. - [ ] `ci.yml`: on push to `master` + `workflow_dispatch`; runs `npm ci` (or install) and `npm run check`. - [ ] `publish.yml`: on tag `v*` + 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 while `NPMJS_TOKEN` is absent. - [ ] `release.yml`: create the Forgejo release page from `CHANGELOG.md`; attach the tarball; idempotent. - [ ] `CHANGELOG.md` with `## [Unreleased]` and a placeholder `## [0.1.0]` section. ## Acceptance - No `pull_request` trigger anywhere (runner has the host Docker socket). - First push to `master` runs `ci.yml` green; manual dispatch of `publish.yml` behaves as a dry run / no-op, not a publish. - Re-running any tag workflow does not fail or duplicate artifacts. ## Notes - Template rationale and rules: bootcamp "Shipping: CI, tags and releases". - Depends on #1 (`npm run check` must exist). Part of M0.
dsh added this to the M0 — Foundations milestone 2026-10-25 14:57:49 +00:00
Author
Owner

Done in f665918. Four workflows adopted (ci, publish, publish-npmjs, release), no pull_request trigger, tag check, idempotent publish/release, notes from CHANGELOG.md. CI run #1 is green: https://git.pvlb.dev/dsh-plugins/dsh-whale-noises/actions/runs/1

**Done** in `f665918`. Four workflows adopted (`ci`, `publish`, `publish-npmjs`, `release`), no `pull_request` trigger, tag check, idempotent publish/release, notes from `CHANGELOG.md`. CI run #1 is green: https://git.pvlb.dev/dsh-plugins/dsh-whale-noises/actions/runs/1
dsh closed this issue 2026-10-25 17:43:46 +00:00
Sign in to join this conversation.
No description provided.