Détail du package

@laststance/npm-publish-tool

laststance845MIT1.6.9

Automates the setup of release-it in user projects with proper versioning, changelogs, and GitHub releases

release-it, npm, publish, automation

readme

@laststance/npm-publish-tool


cover_image


Feature

🚀 Release npm package with npm run push-release-commit command
📦 Autogenerate Github release page
🔧 Publish NPM in GitHub Actions by release-it


demo


Usage(after install complete)

npm run push-release-commit

Requirements

  • Node.js 20.0.0 or higher

1. Installation

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 file

2. GitHub Repository Setup

To use the automated releases, you need to configure these secrets in your GitHub repository:

Required Secrets

  1. NPM_TOKEN: Your NPM automation token

    • Go to npmjs.com → Account → Access Tokens
    • Create a token
    • Add it as a repository secret
  2. ACCESS_TOKEN: GitHub Personal Access Token

    • Go to GitHub Settings → Developer settings → Personal access tokens
    • Create a token with repo scope
    • Add it as a repository secret

3. Update .github/workflows/release.yml

Update the .github/workflows/release.yml file with your own build steps.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © Ryota Murakami

Related

  • release-it - The underlying release automation tool