npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@babajide234/git-merge-workflow

v1.0.6

Published

Automated Git workflow for merging feature branches through staging to develop

Downloads

25

Readme

Git Merge Workflow PowerShell Module

Automate your git merge workflow with safety and ease. This module helps you merge your current feature branch to a staging branch (e.g., feature-branch-staging), and then to a target branch (e.g., develop), ensuring a consistent workflow.

Features

  • Automated Merging: Merges current branch -> Staging -> Target.
  • Safety Checks: Prevents running on wrong branches, checks for uncommitted changes.
  • Conflict Handling: Stops immediately on merge conflicts so you can resolve them.
  • Automatic Cleanup: Returns you to your original branch even if the script fails.
  • Configurable: Define project-specific settings via a JSON configuration file.
  • Dry Run: Support for -WhatIf to preview actions.

Installation

Via NPM (Recommended for Node.js users)

You can install this tool globally using npm:

npm install -g @babajide234/git-merge-workflow

This will make the gmw and git-merge-workflow commands available in your terminal.

Manual Installation

  1. Download this repository.
  2. Run the included installation script:
    .\Install.ps1
    Or copy the GitMergeWorkflow folder to your PowerShell modules directory manually.
  3. Import the module (if not auto-loaded):
    Import-Module GitMergeWorkflow

Usage

Basic Usage

Run the workflow from your feature branch:

Invoke-GitMergeWorkflow
# OR use the alias
gmw

With Commit Message

If you have uncommitted changes, you can commit them as part of the workflow:

gmw -CommitMessage "Feat: Completed login page"

Dry Run (Preview)

See what commands would be executed without actually running them:

gmw -WhatIf

Custom Branches

Override default branches on the fly:

gmw -TargetBranch "main" -StagingBranch "custom-staging"

Configuration

You can create a configuration file for your project so you don't have to pass parameters every time.

  1. Navigate to your project root.

  2. Run the configuration generator:

    New-GitWorkflowConfig -TargetBranch "main" -StagingSuffix "-test"

    This creates a .git-merge-workflow.json file:

    {
      "TargetBranch": "main",
      "StagingSuffix": "-test",
      "Remote": "origin"
    }

Publishing (For Maintainers)

GitHub Actions

This repository is configured to automatically publish to:

  1. PowerShell Gallery (if NUGET_KEY secret is set)
  2. NPM Registry (if NPM_TOKEN secret is set)

When you create a new Release in GitHub.

Manual Publishing

To NPM:

npm login
npm publish --access public

To PowerShell Gallery:

Publish-Module -Path . -NuGetApiKey <Your-API-Key>

Functions

  • Invoke-GitMergeWorkflow (Alias: gmw, git-merge-workflow): The main workflow command.
  • New-GitWorkflowConfig: Generates the .git-merge-workflow.json configuration file.
  • Get-GitWorkflowConfig: Reads the current configuration.

Cross-Platform Support (Mac/Linux)

This tool works on Windows, macOS, and Linux.

Requirements for macOS/Linux

You must have PowerShell Core (pwsh) installed.

macOS (Homebrew):

brew install --cask powershell

Linux (Ubuntu):

sudo apt-get install -y wget apt-transport-https software-properties-common
wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y powershell

License

MIT