Skip to content

Commit

Permalink
update readme file with publish process
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Apr 17, 2018
1 parent cb4bbe5 commit b7b20b3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ Thumbs.db
# IDEs
.idea
*.iml

# Changelog (generate with github_changelog_generator not commit just copied to release)
CHANGELOG.md
32 changes: 29 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,34 @@ Create a [`.stylelintrc`](http://stylelint.io/user-guide/configuration/) config
}
```

## [Update & Publish to NPM](https://docs.npmjs.com/cli/version)
```npm version [ major | minor | patch ]```
## [Update & Publish to NPM]

```npm publish```
### 1. Create release on github

Update package.json version on master branch:

```bash
git checkout master
git pull origin master
npm version [ major | minor | patch ] --no-git-tag-version
git add .
git commit -m "Release <version>"
git push origin master
```

Generate changelog:

```bash
github_changelog_generator --future-release <version>
```

Copy the text of the last release into and get new release.

### 2. Publish release

```
git fetch --tags
git checkout <version>
npm publish
```

0 comments on commit b7b20b3

Please sign in to comment.