0.0.4 • Published 1 year ago

auto-plugin-composer v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Composer Plugin

Installation

This plugin is not included with the auto CLI installed via NPM. To install:

npm i --save-dev auto-plugin-composer
# or
yarn add -D auto-plugin-composer

Usage

{
  "plugins": [
    "composer"
    // other plugins
  ]
}

Use with custom script

{
  "plugins": [
    ["composer", {"publishScript":"./scripts/on-release.sh"}]
    // other plugins
  ]
}

Sample custom script to keep develop up to date with the base branch ./scripts/on-release.sh:

#!/usr/bin/env bash

echo RUNNING FROM "$0"

set -xe

remote=${2}
branch=${3}

git checkout develop
git merge "$branch" -m "Merge branch $branch [skip ci]"
git push "$remote" develop