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

feat(build): added release support. Closes #54. Closes #24 #327

Merged

Conversation

dsebastien
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

Adds the possibility to release and publish a release in an automated fashion using Travis

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@dsebastien dsebastien added this to the 10.0.0-alpha.1 milestone Apr 23, 2018
@coveralls
Copy link

Pull Request Test Coverage Report for Build 198

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 96.031%

Totals Coverage Status
Change from base Build 196: 0.0%
Covered Lines: 7662
Relevant Lines: 7905

💛 - Coveralls

@coveralls
Copy link

coveralls commented Apr 23, 2018

Pull Request Test Coverage Report for Build 218

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.734%

Totals Coverage Status
Change from base Build 212: 0.0%
Covered Lines: 7697
Relevant Lines: 7958

💛 - Coveralls

@dsebastien dsebastien force-pushed the feature/release branch 2 times, most recently from 4b2de79 to c938207 Compare April 23, 2018 16:39
@dsebastien dsebastien force-pushed the feature/release branch 2 times, most recently from 0f8725d to a65e122 Compare April 23, 2018 20:34
@dsebastien dsebastien mentioned this pull request Apr 23, 2018
7 tasks
Copy link
Collaborator

@christophercr christophercr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some clarifications ;)

Once the tag is pushed to GitHub, Travis picks it up and initiates a build.
Travis executes builds, tests, then executes `npm run release:publish`.

That script makes some checks then, if all succeed it publishes the different packages on npm.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question... what if something goes wrong during these checks? what if this process fails? how to re-trigger the publish?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be optimistic for now: we'll use tag until we face an issue.
If we do face an issue, then we can switch to checking the commit message instead and make sure we can do the publish locally and not only through Travis

* creates a new git tag and pushes it
* creates a github release page and makes it final

After this, the release is tagged and visible on github
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does the commit "chore(release): release %s" is actually done?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, it's used by release it when release:prepare is executed.

@christophercr christophercr merged commit f15a983 into NationalBankBelgium:master Apr 25, 2018
@dsebastien dsebastien deleted the feature/release branch May 18, 2018 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants