Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Exec Plugin #1033

Merged
merged 7 commits into from
Mar 7, 2020
Merged

Add Exec Plugin #1033

merged 7 commits into from
Mar 7, 2020

Conversation

hipstersmoothie
Copy link
Collaborator

@hipstersmoothie hipstersmoothie commented Mar 7, 2020

Release Notes

Install @auto-it/exec to easily run bash scripts during the auto release pipeline! Right now it doesn't handle every hook in auto but it exposes enough to quickly write plugins.

{
  "plugins": [
    [
      "exec",
      {
        "afterShipIt": "echo 'Do something cool'"
      }
    ]
    // other plugins
  ]
}

Here is an example of a super light weight version of the npm and gh-pages plugins (Note: This misses out on a lot of features that are in the official plugins)

{
  "plugins": [
    [
      "exec",
      {
        "version": "npm version $ARG_0",
        "publish": "npm publish && git push --tags",
        "afterRelease": "yarn docs && push-dir --dir=docs --branch=gh-pages"
      }
    ]
    // other plugins
  ]
}

Why

this comment

Todo:

  • Add tests
  • Add docs
📦 Published PR as canary version: under canary scope @auto-canary@9.18.0-canary.1033.13632.0

✨ Test out this PR locally via:

npm install @auto-canary/bot-list@9.18.0-canary.1033.13632.0
npm install @auto-canary/auto@9.18.0-canary.1033.13632.0
npm install @auto-canary/core@9.18.0-canary.1033.13632.0
npm install @auto-canary/all-contributors@9.18.0-canary.1033.13632.0
npm install @auto-canary/chrome@9.18.0-canary.1033.13632.0
npm install @auto-canary/conventional-commits@9.18.0-canary.1033.13632.0
npm install @auto-canary/crates@9.18.0-canary.1033.13632.0
npm install @auto-canary/exec@9.18.0-canary.1033.13632.0
npm install @auto-canary/first-time-contributor@9.18.0-canary.1033.13632.0
npm install @auto-canary/gh-pages@9.18.0-canary.1033.13632.0
npm install @auto-canary/git-tag@9.18.0-canary.1033.13632.0
npm install @auto-canary/gradle@9.18.0-canary.1033.13632.0
npm install @auto-canary/jira@9.18.0-canary.1033.13632.0
npm install @auto-canary/maven@9.18.0-canary.1033.13632.0
npm install @auto-canary/npm@9.18.0-canary.1033.13632.0
npm install @auto-canary/omit-commits@9.18.0-canary.1033.13632.0
npm install @auto-canary/omit-release-notes@9.18.0-canary.1033.13632.0
npm install @auto-canary/released@9.18.0-canary.1033.13632.0
npm install @auto-canary/s3@9.18.0-canary.1033.13632.0
npm install @auto-canary/slack@9.18.0-canary.1033.13632.0
npm install @auto-canary/twitter@9.18.0-canary.1033.13632.0
npm install @auto-canary/upload-assets@9.18.0-canary.1033.13632.0
# or 
yarn add @auto-canary/bot-list@9.18.0-canary.1033.13632.0
yarn add @auto-canary/auto@9.18.0-canary.1033.13632.0
yarn add @auto-canary/core@9.18.0-canary.1033.13632.0
yarn add @auto-canary/all-contributors@9.18.0-canary.1033.13632.0
yarn add @auto-canary/chrome@9.18.0-canary.1033.13632.0
yarn add @auto-canary/conventional-commits@9.18.0-canary.1033.13632.0
yarn add @auto-canary/crates@9.18.0-canary.1033.13632.0
yarn add @auto-canary/exec@9.18.0-canary.1033.13632.0
yarn add @auto-canary/first-time-contributor@9.18.0-canary.1033.13632.0
yarn add @auto-canary/gh-pages@9.18.0-canary.1033.13632.0
yarn add @auto-canary/git-tag@9.18.0-canary.1033.13632.0
yarn add @auto-canary/gradle@9.18.0-canary.1033.13632.0
yarn add @auto-canary/jira@9.18.0-canary.1033.13632.0
yarn add @auto-canary/maven@9.18.0-canary.1033.13632.0
yarn add @auto-canary/npm@9.18.0-canary.1033.13632.0
yarn add @auto-canary/omit-commits@9.18.0-canary.1033.13632.0
yarn add @auto-canary/omit-release-notes@9.18.0-canary.1033.13632.0
yarn add @auto-canary/released@9.18.0-canary.1033.13632.0
yarn add @auto-canary/s3@9.18.0-canary.1033.13632.0
yarn add @auto-canary/slack@9.18.0-canary.1033.13632.0
yarn add @auto-canary/twitter@9.18.0-canary.1033.13632.0
yarn add @auto-canary/upload-assets@9.18.0-canary.1033.13632.0

@hipstersmoothie hipstersmoothie added the minor Increment the minor version when merged label Mar 7, 2020
@codecov
Copy link

codecov bot commented Mar 7, 2020

Codecov Report

Merging #1033 into master will increase coverage by 0.34%.
The diff coverage is 94.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1033      +/-   ##
==========================================
+ Coverage   81.06%   81.41%   +0.34%     
==========================================
  Files          48       49       +1     
  Lines        3444     3513      +69     
  Branches      690      708      +18     
==========================================
+ Hits         2792     2860      +68     
+ Misses        481      480       -1     
- Partials      171      173       +2
Impacted Files Coverage Δ
packages/core/src/auto.ts 78.8% <ø> (ø) ⬆️
packages/core/src/config.ts 89.53% <0%> (-0.13%) ⬇️
plugins/exec/src/index.ts 95.71% <95.71%> (ø)
packages/core/src/utils/get-current-branch.ts 75% <0%> (+16.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 23f4331...c9c64f4. Read the comment docs.

@hipstersmoothie hipstersmoothie merged commit b5d64f4 into master Mar 7, 2020
@hipstersmoothie hipstersmoothie deleted the exec branch March 7, 2020 21:47
@adierkens
Copy link
Collaborator

🚀 PR was released in v9.18.0 🚀

@adierkens adierkens added the released This issue/pull request has been released. label Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants