Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: buildo/smooth-release
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.2
Choose a base ref
...
head repository: buildo/smooth-release
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 1,221 additions and 393 deletions.
  1. +0 −9 .npmignore
  2. +240 −28 CHANGELOG.md
  3. +118 −44 README.md
  4. +19 −10 package.json
  5. +48 −0 src/commitAndPush.js
  6. +76 −11 src/config.js
  7. +75 −61 src/github/changelog.js
  8. +31 −41 src/github/release.js
  9. +65 −9 src/index.js
  10. +17 −0 src/modules/getAllMergedPullRequests.js
  11. +68 −133 src/npm/publish.js
  12. +188 −0 src/npm/version.js
  13. +102 −47 src/utils.js
  14. +174 −0 src/validations/index.js
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

268 changes: 240 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,68 +2,280 @@



## [v2.0.1](https://github.com/FrancescoCioria/smooth-release/tree/v2.0.1) (2016-11-05)
[Full Changelog](https://github.com/FrancescoCioria/smooth-release/compare/v2.0.0...v2.0.1)
## [v8.0.9](https://github.com/buildo/smooth-release/tree/v8.0.9) (2019-01-10)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v8.0.8...v8.0.9)

#### Fixes (bugs & defects):

- gh-release always fails when run after publish [#24](https://github.com/FrancescoCioria/smooth-release/issues/24)
- `publish` with `pack` does not work for organization's packages [#113](https://github.com/buildo/smooth-release/issues/113)

## [v2.0.0](https://github.com/FrancescoCioria/smooth-release/tree/v2.0.0) (2016-11-04)
[Full Changelog](https://github.com/FrancescoCioria/smooth-release/compare/v1.0.6...v2.0.0)
## [v8.0.8](https://github.com/buildo/smooth-release/tree/v8.0.8) (2018-12-06)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v8.0.7...v8.0.8)

#### Fixes (bugs & defects):

- throws error without a `.smooth-releaserc` well configured file [#111](https://github.com/buildo/smooth-release/issues/111)

## [v8.0.7](https://github.com/buildo/smooth-release/tree/v8.0.7) (2018-11-23)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v8.0.6...v8.0.7)

#### Fixes (bugs & defects):

- publish with tar package fails [#109](https://github.com/buildo/smooth-release/issues/109)

## [v8.0.6](https://github.com/buildo/smooth-release/tree/v8.0.6) (2018-11-23)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v8.0.5...v8.0.6)

#### Fixes (bugs & defects):

- Does not work if called from `yarn` [#107](https://github.com/buildo/smooth-release/issues/107)

## [v8.0.5](https://github.com/buildo/smooth-release/tree/v8.0.5) (2017-12-13)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v8.0.4...v8.0.5)

#### Fixes (bugs & defects):

- version script ignores changelog.ignoredLabels [#103](https://github.com/buildo/smooth-release/issues/103)

#### New features:

- add docs for #99 [#101](https://github.com/buildo/smooth-release/issues/101)
- Preview package files and validate against package.json [#93](https://github.com/buildo/smooth-release/issues/93)

## [v8.0.4](https://github.com/buildo/smooth-release/tree/v8.0.4) (2017-06-07)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v8.0.3...v8.0.4)

#### New features:

- human validation of computed version should be optional [#98](https://github.com/buildo/smooth-release/issues/98)
- Optionally use pull requests instead of issues [#91](https://github.com/buildo/smooth-release/issues/91)

## [v8.0.3](https://github.com/buildo/smooth-release/tree/v8.0.3) (2017-04-18)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v8.0.2...v8.0.3)

#### Fixes (bugs & defects):

- Support git origins that are missing the suffix ".git" [#89](https://github.com/buildo/smooth-release/issues/89)

## [v8.0.2](https://github.com/buildo/smooth-release/tree/v8.0.2) (2017-04-14)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v8.0.1...v8.0.2)

#### Fixes (bugs & defects):

- typo: "assure" instead of "ensure" [#87](https://github.com/buildo/smooth-release/issues/87)

## [v8.0.1](https://github.com/buildo/smooth-release/tree/v8.0.1) (2017-04-05)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v8.0.0...v8.0.1)

#### New features:

- Use `update-notifier` to notify users when a new version is available [#66](https://github.com/buildo/smooth-release/issues/66)

## [v8.0.0](https://github.com/buildo/smooth-release/tree/v8.0.0) (2017-03-24)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v7.0.3...v8.0.0)

#### Breaking:

- "files" should be the default for config.packageFilesFilter validations [#83](https://github.com/buildo/smooth-release/issues/83)

## [v7.0.3](https://github.com/buildo/smooth-release/tree/v7.0.3) (2017-03-24)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v7.0.2...v7.0.3)

#### New features:

- add validation for .npmignore or package.json's files [#69](https://github.com/buildo/smooth-release/issues/69)

## [v7.0.2](https://github.com/buildo/smooth-release/tree/v7.0.2) (2017-03-24)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v7.0.1...v7.0.2)

#### Fixes (bugs & defects):

- npm validation does not handle org teams [#80](https://github.com/buildo/smooth-release/issues/80)
- Error messages not displayed properly on node 7 [#64](https://github.com/buildo/smooth-release/issues/64)

#### New features:

- add validation for github access_token [#78](https://github.com/buildo/smooth-release/issues/78)

## [v7.0.1](https://github.com/buildo/smooth-release/tree/v7.0.1) (2017-02-24)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v7.0.0...v7.0.1)

#### Fixes (bugs & defects):

- --no-npm-publish does not disable npm validation [#72](https://github.com/buildo/smooth-release/issues/72)
- Changelog does not consider the new tag added by npm-version task [#68](https://github.com/buildo/smooth-release/issues/68)

#### New features:

- add command to show version [#71](https://github.com/buildo/smooth-release/issues/71)

## [v7.0.0](https://github.com/buildo/smooth-release/tree/v7.0.0) (2017-01-27)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v6.0.0...v7.0.0)

#### Fixes (bugs & defects):

- Shouldn't crash if tag already exists [#62](https://github.com/buildo/smooth-release/issues/62)

#### New features:

- add "validation" to check if user has valid npm credentials for package [#58](https://github.com/buildo/smooth-release/issues/58)

#### Breaking:

- Changelog is committed after the tag [#53](https://github.com/buildo/smooth-release/issues/53)

## [v6.0.0](https://github.com/buildo/smooth-release/tree/v6.0.0) (2017-01-03)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v5.0.4...v6.0.0)

#### Breaking:

- Add interactive questions for each step [#52](https://github.com/buildo/smooth-release/issues/52)

## [v5.0.4](https://github.com/buildo/smooth-release/tree/v5.0.4) (2017-01-02)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v5.0.3...v5.0.4)

#### Fixes (bugs & defects):

- Changelog: some Issues are put under the wrong tag [#54](https://github.com/buildo/smooth-release/issues/54)

## [v5.0.3](https://github.com/buildo/smooth-release/tree/v5.0.3) (2016-12-07)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v5.0.2...v5.0.3)

#### Fixes (bugs & defects):

- `--no-validation` and `--no-npm-publish` CLI args don't work [#50](https://github.com/buildo/smooth-release/issues/50)

## [v5.0.2](https://github.com/buildo/smooth-release/tree/v5.0.2) (2016-12-05)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v5.0.1...v5.0.2)

#### New features:

- allow passing token as CLI argument [#48](https://github.com/buildo/smooth-release/issues/48)

## [v5.0.1](https://github.com/buildo/smooth-release/tree/v5.0.1) (2016-11-25)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v5.0.0...v5.0.1)

#### New features:

- pass version manually [#46](https://github.com/buildo/smooth-release/issues/46)

## [v5.0.0](https://github.com/buildo/smooth-release/tree/v5.0.0) (2016-11-25)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v4.0.2...v5.0.0)

#### Breaking:

- split publish.js in multiple sub-modules [#44](https://github.com/buildo/smooth-release/issues/44)

## [v4.0.2](https://github.com/buildo/smooth-release/tree/v4.0.2) (2016-11-13)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v4.0.1...v4.0.2)

#### Fixes (bugs & defects):

- fix status logs once and for all [#42](https://github.com/buildo/smooth-release/issues/42)

## [v4.0.1](https://github.com/buildo/smooth-release/tree/v4.0.1) (2016-11-12)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v4.0.0...v4.0.1)

#### Fixes (bugs & defects):

- only first "info" subtitle is logged! [#40](https://github.com/buildo/smooth-release/issues/40)

## [v4.0.0](https://github.com/buildo/smooth-release/tree/v4.0.0) (2016-11-12)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v3.0.0...v4.0.0)

#### Breaking:

- default config should be enough to run smooth-release without errors [#38](https://github.com/buildo/smooth-release/issues/38)
- add validation for untracked files [#33](https://github.com/buildo/smooth-release/issues/33)
- add validation for uncommitted changes [#32](https://github.com/buildo/smooth-release/issues/32)

#### Fixes (bugs & defects):

- elegant-status sometimes doesn't show ongoing step [#36](https://github.com/buildo/smooth-release/issues/36)

## [v3.0.0](https://github.com/buildo/smooth-release/tree/v3.0.0) (2016-11-12)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v2.0.2...v3.0.0)

#### Breaking:

- GitHub token should be global [#22](https://github.com/FrancescoCioria/smooth-release/issues/22)
- Add confirmation step before publishing to npm [#30](https://github.com/buildo/smooth-release/issues/30)

#### New features:

- Replace node-status with elegant-status [#28](https://github.com/buildo/smooth-release/issues/28)

## [v1.0.6](https://github.com/FrancescoCioria/smooth-release/tree/v1.0.6) (2016-11-03)
[Full Changelog](https://github.com/FrancescoCioria/smooth-release/compare/v1.0.5...v1.0.6)
## [v2.0.2](https://github.com/buildo/smooth-release/tree/v2.0.2) (2016-11-10)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v2.0.1...v2.0.2)

#### New features:

- add missing "babel-runtime" dep [#20](https://github.com/FrancescoCioria/smooth-release/issues/20)
- gh-release should optionally add release for every version tag [#26](https://github.com/buildo/smooth-release/issues/26)

## [v1.0.5](https://github.com/FrancescoCioria/smooth-release/tree/v1.0.5) (2016-11-03)
[Full Changelog](https://github.com/FrancescoCioria/smooth-release/compare/v1.0.4...v1.0.5)
## [v2.0.1](https://github.com/buildo/smooth-release/tree/v2.0.1) (2016-11-05)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v2.0.0...v2.0.1)

#### Fixes (bugs & defects):

- Changelog: output is outdated [#18](https://github.com/FrancescoCioria/smooth-release/issues/18)
- gh-release always fails when run after publish [#24](https://github.com/buildo/smooth-release/issues/24)

## [v2.0.0](https://github.com/buildo/smooth-release/tree/v2.0.0) (2016-11-04)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v1.0.6...v2.0.0)

#### Breaking:

- GitHub token should be global [#22](https://github.com/buildo/smooth-release/issues/22)

## [v1.0.6](https://github.com/buildo/smooth-release/tree/v1.0.6) (2016-11-03)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v1.0.5...v1.0.6)

#### Fixes (bugs & defects):

- add missing "babel-runtime" dep [#20](https://github.com/buildo/smooth-release/issues/20)

## [v1.0.5](https://github.com/buildo/smooth-release/tree/v1.0.5) (2016-11-03)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v1.0.4...v1.0.5)

#### Fixes (bugs & defects):

- Changelog: output is outdated [#18](https://github.com/buildo/smooth-release/issues/18)

#### New features:

- Improve logs [#16](https://github.com/FrancescoCioria/smooth-release/issues/16)
- Improve logs [#16](https://github.com/buildo/smooth-release/issues/16)

## [v1.0.4](https://github.com/FrancescoCioria/smooth-release/tree/v1.0.4) (2016-11-02)
[Full Changelog](https://github.com/FrancescoCioria/smooth-release/compare/v1.0.3...v1.0.4)
## [v1.0.4](https://github.com/buildo/smooth-release/tree/v1.0.4) (2016-11-02)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v1.0.3...v1.0.4)

#### New features:

- Changelog: add date time to tags [#14](https://github.com/FrancescoCioria/smooth-release/issues/14)
- Changelog: push CHANGELOG.md after generating it [#8](https://github.com/FrancescoCioria/smooth-release/issues/8)
- Changelog: add date time to tags [#14](https://github.com/buildo/smooth-release/issues/14)

#### Fixes (bugs & defects):

- Changelog: issues are placed in wrong tag section [#12](https://github.com/FrancescoCioria/smooth-release/issues/12)
- Default: changelog should be generated before running gh-release script [#10](https://github.com/FrancescoCioria/smooth-release/issues/10)
- Changelog: issues are placed in wrong tag section [#12](https://github.com/buildo/smooth-release/issues/12)
- Default: changelog should be generated before running gh-release script [#10](https://github.com/buildo/smooth-release/issues/10)

#### Breaking:

- Changelog: push CHANGELOG.md after generating it [#8](https://github.com/buildo/smooth-release/issues/8)

## [v1.0.3](https://github.com/FrancescoCioria/smooth-release/tree/v1.0.3) (2016-10-30)
[Full Changelog](https://github.com/FrancescoCioria/smooth-release/compare/v1.0.2...v1.0.3)
## [v1.0.3](https://github.com/buildo/smooth-release/tree/v1.0.3) (2016-10-30)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v1.0.2...v1.0.3)

#### Fixes (bugs & defects):

- Changelog: issue link should point to html page [#6](https://github.com/FrancescoCioria/smooth-release/issues/6)
- Changelog: issue link should point to html page [#6](https://github.com/buildo/smooth-release/issues/6)

## [v1.0.2](https://github.com/FrancescoCioria/smooth-release/tree/v1.0.2) (2016-10-24)
[Full Changelog](https://github.com/FrancescoCioria/smooth-release/compare/v1.0.1...v1.0.2)
## [v1.0.2](https://github.com/buildo/smooth-release/tree/v1.0.2) (2016-10-24)
[Full Changelog](https://github.com/buildo/smooth-release/compare/v1.0.1...v1.0.2)

#### Fixes (bugs & defects):

- Changelog: should not list PRs [#4](https://github.com/FrancescoCioria/smooth-release/issues/4)
- Changelog: issues are always considered "breaking" [#2](https://github.com/FrancescoCioria/smooth-release/issues/2)
- Changelog: should not list PRs [#4](https://github.com/buildo/smooth-release/issues/4)
- Changelog: issues are always considered "breaking" [#2](https://github.com/buildo/smooth-release/issues/2)

#### New features:

- Improve logs with node-status [#1](https://github.com/FrancescoCioria/smooth-release/issues/1)
- Improve logs with node-status [#1](https://github.com/buildo/smooth-release/issues/1)

## [v1.0.1](https://github.com/FrancescoCioria/smooth-release/tree/v1.0.1) (2016-10-24)
## [v1.0.1](https://github.com/buildo/smooth-release/tree/v1.0.1) (2016-10-24)
Loading