Skip to content

Commit

Permalink
Update publish scripts to make git tags and readme for 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskello committed Nov 21, 2023
1 parent 0703ae9 commit d54f859
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased](https://github.com/promaster-sdk/api-server/compare/v3.4.0...master)
## [Unreleased](https://github.com/promaster-sdk/api-server/compare/v3.6.1...master)

## [3.6.1](https://github.com/promaster-sdk/api-server/compare/v3.6.0...v3.6.1)

- Update publish scripts so we get git tags

## [3.6.0](https://github.com/promaster-sdk/api-server/compare/v3.5.0...v3.6.0)

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ ngrok http 4500

```bash
# We should always publish both to npm and dockerhub at the same time with the same version
# First publish a new package version to npm
yarn publish
# First publish a new package version to npm, run **one** of the commands below
# This command will both increment version and publish the package to npm
yarn version --patch
yarn version --minor
yarn version --major
# You should be promted for your desired version by the above command
# To build and push to dockerhub, replace <version> in the below commands with
# the version you entered for the above command
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@
"rebuild": "yarn clean && yarn build",
"lint": "tslint './src/**/*.ts{,x}'",
"precommit": "lint-staged",
"prepublishOnly": "yarn clean && yarn build",
"postversion": "git push --follow-tags"
"verify": "yarn clean && yarn build && yarn test",
"preversion": "yarn verify",
"postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\""
},
"lint-staged": {
"*.{ts,tsx}": "tslint",
Expand Down

0 comments on commit d54f859

Please sign in to comment.