Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): simplify karma-webpack release #200

Merged
merged 3 commits into from
Jan 14, 2017
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
51 changes: 51 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
###Tag and Release process

> Starting from a state where everything is in master that we want released.

*The GitHub Portion*

#### Standard release tag

```bash
# npm run script
npm run release
```

_This will ..._

1. bumps the version in _package.json (based on the commit history)
2. updates _CHANGELOG.md_ for the currnet version
3. commits _package.json_ and _CHANGELOG.md_
4. tags a new release

#### Pre-Release tag

```bash
# npm run script
npm run release -- --prerelease <alpha || beta || rc>
```

_this does the above but tags the version `1.0.1-alpha.0`, `1.0.1-beta.0`, `1.0.1-rc.0`_

#### Push new tag to GitHub

```bash
# npm run script
npm run release:tag:v1
```

_this pushes the newly created tag to github_

#### Publish to NPM

```bash
# npm run script
npm login
```

```bash
# npm run script
npm run release:publish
```

_this runs the build ( with clean & linting ) and publishes karma-webpack to npm using the latest github tag (created above)_
18 changes: 6 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
"test.unit": "mocha --compilers js:babel-register --full-trace --check-leaks test/unit",
"test.integration": "npm run build && karma start --single-run",
"travis": "npm run test.unit && npm run test.integration",
"generate.changelog": "node scripts/release/generate-changelog.js",
"publish.version": "npm run build && sh scripts/release/npm-publish.sh",
"release": "standard-version",
"release:tag:v1": "git push --follow-tags origin v1",
"release:publish": "npm run build:release && npm publish --access public --tag",
"build:watch": "gulp build.watch",
"build:release": "gulp",
"build": "gulp build"
},
"files": [
Expand All @@ -38,7 +40,6 @@
"webpack-dev-middleware": "^1.0.11"
},
"devDependencies": {
"add-stream": "^1.0.0",
"babel-cli": "^6.11.4",
"babel-core": "^6.11.4",
"babel-plugin-transform-runtime": "^6.12.0",
Expand All @@ -48,9 +49,6 @@
"babel-register": "^6.11.6",
"chai": "^3.5.0",
"chai-as-promised": "^5.3.0",
"conventional-changelog": "^1.1.0",
"cross-env": "^2.0.0",
"cz-conventional-changelog": "^1.1.6",
"del": "^2.2.1",
"eslint": "^3.1.1",
"eslint-plugin-babel": "^3.3.0",
Expand All @@ -64,11 +62,7 @@
"karma-chrome-launcher": "~1.0.1",
"karma-mocha": "~1.1.1",
"karma-spec-reporter": "~0.0.22",
"mocha": "^2.5.3"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
"mocha": "^2.5.3",
"standard-version": "^4.0.0"
}
}
16 changes: 0 additions & 16 deletions scripts/release/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions scripts/release/generate-changelog.js

This file was deleted.

24 changes: 0 additions & 24 deletions scripts/release/npm-publish.sh

This file was deleted.