From 8e6ec0efea31a174396c480d130a12fe17be0514 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Thu, 13 Feb 2020 14:14:49 -0500 Subject: [PATCH] Add development docs --- README.md | 4 ++++ docs/development.md | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 docs/development.md diff --git a/README.md b/README.md index a1804c44..491d85bf 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ documentation. **Note** This action is still a bit of an experiment—the API may change in *future versions. 🙂 +## Development + +See [development.md](/docs/development.md). + ## Examples Note that `github-token` is optional in this action, and the input is there diff --git a/docs/development.md b/docs/development.md new file mode 100644 index 00000000..34af86f9 --- /dev/null +++ b/docs/development.md @@ -0,0 +1,27 @@ +# Development + +## How this action works + +This action works by evaluating the user input as the body of an asynchronous +JavaScript function. See [main.ts](/src/main.ts) for details. + +## Building + +Before the action can be used, it needs to be compiled to JavaScript: + +```shell +bash> npm run build +``` + +It also has a pre-commit hook configured via +[husky](https://www.npmjs.com/package/husky) that should run the build script +before each commit. + +## Releasing + +Releases are done manually, for now: + +1. Ensure that the build is up to date with `npm run build`. +1. Bump the [package.json](/package.json#L3) and [package-lock.json](/package-lock.json#L3) version numbers and commit them. +1. Update documentation (including updated version numbers). +1. Tag master with the new version number and create a GitHub release.