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

Update the release process to use github releases #271

Merged
merged 9 commits into from
Nov 1, 2016
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Nov 1, 2016

  • Removes the 'dist' directory from the source tree, as it's a little strange keeping built artefacts from every version in the master branch.
  • Build release assets at release time using the 'dist' script
  • Use 'hub' to perform the actual release (ie. make the tag, except that it also uploads release assets)

Rather than to version specific directories beneath dist, since
we're now not keeping every built version in the source tree.

Also:

 * build the minified version at the same time,
 * Include rimraf so we can rm -r dist (npm has re-ordered the
   deps)
 * Exclude olm from the bundled file
and gitignore dist since we now just use it for build output.
Adds the 'dist' target for building assets for distribution,
which the release script will run, uploading resulting files
as release assets.
(which just runs npm build, but the presence of the dist script
will inform the release process to run it and upload release
assets)
@@ -6,7 +6,7 @@ coverage
lib-cov
out
reports
dist/browser-matrix-dev.js
dist
Copy link
Member

Choose a reason for hiding this comment

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

/dist please

your page. There will be a global variable ``matrixcs`` attached to
``window`` through which you can access the SDK.
Download either the full or minified version from
https://github.com/dbkr/test/releases/latest and add that as a ``<script>`` to
Copy link
Member

Choose a reason for hiding this comment

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

what's the plan with dbkr/test ? Fix this after release?

Copy link
Member Author

Choose a reason for hiding this comment

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

c+p fail :(

prerelease=0
# We check if this build is a prerelease by looking to
# see if the version has a hyphen in it. Crude,
# but semver doesn't support postreleaseses so anything
Copy link
Member

Choose a reason for hiding this comment

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

"postreleaseses" ?

Unreleased changes
==================

Breaking Changes
Copy link
Member

Choose a reason for hiding this comment

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

Not convinced that's a breaking change, reallly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it's not an API change, I erred on the side of caution and put it in just in case anyone is depending on them being in that place. wdyt?

@richvdh richvdh assigned dbkr and unassigned richvdh Nov 1, 2016
@dbkr dbkr assigned richvdh and unassigned dbkr Nov 1, 2016
@dbkr
Copy link
Member Author

dbkr commented Nov 1, 2016

ptal

Rather than trying to use them and failing at annoying points
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm

@dbkr dbkr merged commit 0b9f85d into develop Nov 1, 2016
@dbkr dbkr deleted the dbkr/build_process branch December 14, 2016 18:10
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.

2 participants