Skip to content

Instantly share code, notes, and snippets.

@crs1138
Last active April 17, 2022 11:02
Show Gist options
  • Save crs1138/df5242e2077a98d7aaf43378dfef3032 to your computer and use it in GitHub Desktop.
Save crs1138/df5242e2077a98d7aaf43378dfef3032 to your computer and use it in GitHub Desktop.
NPM script to bump the version in the CHANGELOG.md file.
#!/bin/sh
TODAY=$(date +"%y-%m-%d");
sed -i.bak "s/\[Unreleased\]/\[$1\] \($TODAY\)/" CHANGELOG.md
rm -f CHANGELOG.md.bak

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.15.0] (22-04-17)

Changed

  • Tidying up before creating a Github gist

[1.14.0] (22-04-17)

Added

  • Add git to the equation

[1.13.0] (22-04-17)

Added

  • Heureka?

[1.12.0] (22-04-17)

Changed

  • Refactor the app, splitting it into the server and client applications. Turborepo has been employed to manage the individual apps and running their appropriate compilation and development integrates better with Turborepo.
  • The client app is now using React to display the results from Aztro. Further details have been included in the results display. The React single page application relies on custom Webpack configuration.

Removed

  • The server app no longer has the 404 page, instead the React single page app is served for all GET requests.

[1.0.0] - 2022-03-22

Added

  • Create basic NodeJS app fetching horoscope data from the Aztro API. The app uses Handlebars to display the results.
{
"name": "yarn-sed",
"version": "1.15.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"postversion": "changelog-version-bump.sh $npm_package_version"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment