metadata-update-and-release.js 949 B

1234567891011121314151617181920212223242526272829303132
  1. import update_metadata from './modules/update-metadata.js'
  2. import commit from './modules/commit.js'
  3. import exec from './modules/exec.js'
  4. if (update_metadata())
  5. {
  6. commit()
  7. console.log()
  8. console.log('========================================')
  9. console.log('= Pushing changes =')
  10. console.log('========================================')
  11. console.log()
  12. console.log(exec('git push'))
  13. console.log()
  14. console.log('========================================')
  15. console.log('= Pushed. Releasing. =')
  16. console.log('========================================')
  17. console.log()
  18. console.log(exec('npm version patch'))
  19. console.log(exec('npm publish'))
  20. console.log(exec('git push'))
  21. console.log()
  22. console.log('========================================')
  23. console.log('= Released =')
  24. console.log('========================================')
  25. console.log()
  26. }