This repository provides a npx script to patch the release notes in our documentation repository.
Goal: Update the patches section of the release notes so customers know the latest version of a release and what has been fixed
How: With every merge to a github branch with the pattern release-YYYY-MM
on the livingdocs-server
and livingdocs-editor
, the script gets the PR information and pushes it to the patches section of the release notes in the documentation repository.
Goal: Add every merge to main to the upcoming release notes to simplify the preparation for the next release
How: With every merge to main
on the livingdocs-server
and livingdocs-editor
, the script gets the PR information and pushes it on top of the upcoming release in the documentation repository.
Currently only works with node 14, until this bug has been fixed.
# tag = tag of the patch
# sha = sha of the patch
npx github:livingdocsIO/release-notes-patch \
--token='gh-token' \
--owner=livingdocsIO \
--repo=livingdocs-server \
--sha=29d528db124df6e4fce1b4f9f4232e17d8776ccd \
--tag=v75.15.5
# in test mode the change will not be commited to the release-notes
npx github:livingdocsIO/release-notes-patch \
...
--test=true
---
kind: pipeline
type: docker
name: release
steps:
- name: release-notes-patch
image: livingdocs/node:16
commands:
- |
npx github:livingdocsIO/release-notes-patch \
--token=$GH_TOKEN \
--owner=livingdocsIO \
--repo=livingdocs-server \
--sha=$DRONE_COMMIT_SHA \
--tag=$DRONE_TAG
environment:
GH_TOKEN:
from_secret: gh_token
trigger:
event: [tag]