seas-computing / mark-one

A UI component library for building React Apps (in development)
https://seas-computing.github.io/mark-one/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Set up automated publishing to npm #35

Closed jonseitz closed 4 years ago

jonseitz commented 4 years ago

This PR includes multiple steps necessary to start publishing builds of mark-one on NPM:

  1. Only includes the necessary files in the bundled version (e.g., remove tests, config files, etc.)
  2. Run the compilation before publishing automatically
    • Can be tested with npm publish --dry-run
  3. Add travis scripts to:
    1. On an untagged commit to develop or master, bump the version number and commit back to github
    2. On a tagged commit, build the package and deploy to npm, tagging develop builds as mark-one@dev

This double build is necessary because NPM only lets you publish unique versions, and we need to make sure those version changes are persisted in GitHub. I'm open to suggestions on other ways to do that.

fixes seas-computing/course-planner#142

codecov[bot] commented 4 years ago

Codecov Report

Merging #35 into develop will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           develop    #35   +/-   ##
======================================
  Coverage      100%   100%           
======================================
  Files           19     19           
  Lines          178    178           
  Branches        16     16           
======================================
  Hits           178    178

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b06e1ca...ce57b41. Read the comment docs.