prettier-browser-extension icon indicating copy to clipboard operation
prettier-browser-extension copied to clipboard

Add scripts for updating the version

Open lipis opened this issue 6 years ago • 5 comments

It should

  • update the version (patch, minor, major) in package.json and manifest.json
  • commit the changes
  • create a new tag with that version
  • push the changes to GitHub

lipis avatar Oct 16 '19 12:10 lipis

The first three are built into yarn version. Then you just need to push with your preferred git client.

nickserv avatar Oct 16 '19 21:10 nickserv

but not the manifest.json.. We need have scripts like:

yarn release:patch
yarn release:minor
yarn release:major

lipis avatar Oct 17 '19 08:10 lipis

Ah I misunderstood, good point. I wonder if we can hook onto these scripts like with postinstall. Also Mozilla's web-ext tool may help automate this, otherwise it's not too difficult to edit a JSON file with Node scripts.

nickserv avatar Oct 17 '19 08:10 nickserv

Nothing fancy.. my idea was to have node scripts anyway.

lipis avatar Oct 17 '19 08:10 lipis

This is how I’m syncing package.json version with manifest, https://github.com/felixmosh/10bis-chrome-extension/blob/master/webpack.config.js#L109 maybe can be helpful

felixmosh avatar Oct 17 '19 09:10 felixmosh