Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Commit

Permalink
docs(how): npm script tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-dezandee committed Jan 15, 2016
1 parent b636056 commit 9afc4e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HOW.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ This is what `apm publish` really do:
In the background, Atom registry will download a tar ball of your project from git based on this tag.
It will then try to read the package.json to determine the real version you wish to release.

**And here is the catch**, semantically released package doesn't have a "git saved" `package.version`, that's the whole point !
**And here is the catch**, semantically released package doesn't have a "git saved" `package.version`.

So here is the NPM scripts I'm using to make it work:

```json
"scripts": {
"git:push": "git commit -am \"Prepare v$npm_package_version release [ci skip]\"",
"postgit:push": "git push",
"pregit:push": "git commit -am \"Prepare $npm_package_version release\"",
"git:push": "git push",
"apm:publish": "apm publish -t v$npm_package_version",
"semantic-release": "semantic-release pre && npm run git:push && semantic-release post && npm run apm:publish"
},
Expand Down

0 comments on commit 9afc4e6

Please sign in to comment.