cheton / github-release-cli

A command-line tool for managing release assets on a GitHub repository.
MIT License
72 stars 17 forks source link

Programmatic usage #14

Open eight04 opened 4 years ago

eight04 commented 4 years ago

Is there a programmatic interface for this project? Instead of writing the entire shell script, I'd like to create a reusable and cross-platform node tool that can be used in the npm script:

{
  // ...
  "scripts": {
    // ...
    "postversion": "git push --follow-tags && create-github-release"
  },
  "github-release": {
    "changelog": "npm run generate-changelog --silent",
    "assets": [
      "dist/*"
    ]
  }
}