marksmccann / node-sass-extra

A drop-in replacement for node-sass' Node API that adds support for globs, promises and more.
MIT License
2 stars 1 forks source link

ci: add publishing scripts #52

Closed phillipluther closed 5 years ago

phillipluther commented 5 years ago

Updated package.json with pre-/post-release tasks to make publishing easier; also added docs creation and adding Prettier/doc updates to a commit if they make changes so you don't have to make another commit and squash.

In the publishing flow, added prerelease and postrelease tasks to package.json, so it goes:

  1. Dev continues as normal on a feature branch (initial-release in our case)
  2. PR to move the feature branch to master, review, merge
  3. Locally do npm run release, which first kicks off the prerelease tasks a. Locally checks out master b. Pulls the latest code c. Installs/updates dependencies d. Runs a validation check - linting, testing, and checks for formatting errors
  4. If those pass, it runs standard-release to bump the version and update the change log, and creates a tag on the branch and a new chore commit for release
  5. On completion, triggers postrelease tasks a. Pushes the tagged branch back to master b. Publishes to NPM

When we roll with Actions, we can automate this to trigger simply from the commit to master

For now, though, all it takes to update/tag/publish is a single command locally.

re #50