configurable-http-proxy
is available as a npm package available on
npmjs and a Docker
image available on
DockerHub. The
Docker image is automatically built and published on changes to the git
repository as is configured
here.
To make a tagged release follow the instructions below, but first make sure you meet the prerequisites:
- To have push rights to the configurable-http-proxy GitHub repository.
- To have Node.js installed.
-
Update CHANGELOG.md if it is not up to date, and verify README.md has an updated output of running
--help
. Make a PR to review the CHANGELOG notes. -
Once the changelog is up to date, checkout the main branch and make sure it is up to date and clean.
ORIGIN=${ORIGIN:-origin} # set to the canonical remote, e.g. 'upstream' if 'origin' is not the official repo git checkout main git branch --set-upstream-to=$ORIGIN/main main git pull
-
Update the version with
npm version
and let it make a git commit and tag as well for us.# specify the new version here, # which should already have been chosen when updating the changelog. npm version 1.2.3 # verify changes git diff HEAD~1
-
Reset the version to the next development version with
npm version
, without creating a tag:npm version --no-git-tag-version prerelease --preid=dev git commit -am "back to dev" # verify changes git diff HEAD~1
-
Push your new tag and commits to GitHub.
git push --follow-tags $ORIGIN main
-
Verify the automated workflow succeeded.
A manual release should not generally be required, but might be needed in the event of a problem in the automated publishing workflow.
-
Verify you are a collaborator of the npmjs project.
-
Checkout the git tag.
git checkout <tag>
-
Cleanup old node_modules etc.
git clean -xfd
-
Publish to NPM.
npm login npm publish