jonobr1 / two.js

A renderer agnostic two-dimensional drawing api for the web.
https://two.js.org
MIT License
8.31k stars 455 forks source link

Create `npm run deploy` Script to Streamline Package Publishing #440

Open jonobr1 opened 4 years ago

jonobr1 commented 4 years ago

These are currently the steps involved in publishing a new version of Two.js. An npm run publish would greatly increase the ease of publishing and put Two.js on a more regular cycle of publication.

  1. Create new git tag
  2. Add package to Github Packages
  3. Update origin/master
  4. Update npmjs.org
jonobr1 commented 3 years ago

This should really just be a Github Action when tagging commits to specific release versions.

jonobr1 commented 2 years ago

This is essentially two simple npm commands:

  1. npm version minor
  2. npm publish

But, because of Github's Package Registry requires package.json manipulation as well.