Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ To build this into a full, usable library, see the [Analytics.js](https://github
Released under the [MIT license](License.md).

[analytics.js]: https://segment.com/docs/libraries/analytics.js/

## Releasing

1. Update the version in `package.json`.
2. Run `robo release x.y.z` where `x.y.z` is the new version.
9 changes: 9 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# RELEASING

We automatically publish Github tagged releases from our CI to NPM.

We use [`np`](https://github.com/sindresorhus/np) to prepare a release.

`np` will be automatically installed by running `yarn`, and you can run it with `yarn run np`. You can pass flags to it just as you would with `np`, e.g. you can run `yarn np minor`.

If you run `np` directly, take care to use the [`--no-publish`](https://github.com/sindresorhus/np#publish-with-a-ci) flag. This ensures that we don't directly publish to NPM from a local dev machine.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"test": "make test",
"lint": "eslint \"./{lib,test}/**/*.js\"",
"format": "prettier-eslint --write --list-different \"./{lib,test}/**/*.{js,json,md}\"",
"precommit": "lint-staged"
"precommit": "lint-staged",
"np": "np --no-publish"
},
"lint-staged": {
"linters": {
Expand Down Expand Up @@ -98,6 +99,7 @@
"karma-summary-reporter": "^1.5.0",
"lint-staged": "^7.2.0",
"mocha": "^2.2.5",
"np": "^3.0.4",
"phantomjs-prebuilt": "^2.1.7",
"prettier-eslint-cli": "^4.7.1",
"proclaim": "^3.4.1",
Expand Down
Loading