🚀 Release npm package with npm run push-release-commit command
📦 Autogenerate Github release page
🔧 Publish NPM in GitHub Actions by release-it
npm run push-release-commit- Node.js 20.0.0 or higher
npx @laststance/npm-publish-tool@latest init # generate .release-it.json/.github/workflows/release.yml, add `push-release-commit` npm script in package.json
npm install -D @laststance/npm-publish-tool # install `push-release-commit` script fileTo use the automated releases, you need to configure these secrets in your GitHub repository:
-
NPM_TOKEN: Your NPM automation token- Go to npmjs.com → Account → Access Tokens
- Create a token
- Add it as a repository secret
-
ACCESS_TOKEN: GitHub Personal Access Token- Go to GitHub Settings → Developer settings → Personal access tokens
- Create a token with
reposcope - Add it as a repository secret
Update the .github/workflows/release.yml file with your own build steps.
Contributions are welcome! Please feel free to submit a Pull Request.
MIT © Ryota Murakami
- release-it - The underlying release automation tool

