web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
372 B

  1. #! /usr/bin/env bash
  2. set -euo pipefail
  3. # To make it work on OSX (provided gnu-sed in installed)
  4. if type gsed
  5. then
  6. sed=gsed
  7. fi
  8. version=$(jq --raw-output ' .version ' "package.json")
  9. date=$(date +%Y-%m-%d)
  10. $sed \
  11. --regexp-extended \
  12. --in-place="" \
  13. "s$^## \[Unreleased\]$\## [Unreleased\]\n\n\n## [${version}] - ${date}$" \
  14. CHANGELOG.md
  15. git add CHANGELOG.md