scriptPilot / github-action-npm-release

NPM & GitHub release on any package.json version update.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM Release GitHub Action

This GitHub workflow actions simplifies the release of new versions.

Scope

  • ✅ NPM release
  • ✅ GitHub release
  • ✅ GitHub release change note

Usage

  1. Create an NPM access token for automatisation.
  2. Add this token as action secret to the GitHub repository.
  3. Create a workflow file .github/workflows/release.yml:
on:
  push:
    branches:
      - main
jobs:
  release:
    runs-on: ubuntu-latest
    permissions: write-all    
    steps:        
      - uses: actions/checkout@v4
      - run: npm ci
      - run: scriptpilot/github-action-npm-release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
  1. Increase the version in the package.json file.
  2. Commit and push the change to the repository.

About

NPM & GitHub release on any package.json version update.

License:MIT License


Languages

Language:JavaScript 100.0%