Skip to content

Files

Latest commit

ceef928 · Apr 28, 2023

History

History
This branch is 1 commit ahead of, 5650 commits behind coderaiser/putout:master.

plugin-github

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 28, 2023
Apr 21, 2023
Jul 20, 2022
Apr 21, 2023
Apr 21, 2021
Apr 21, 2021
Apr 21, 2023
Apr 21, 2021
Apr 21, 2023
Apr 21, 2023

@putout/plugin-github NPM version

Automate, customize, and execute your software development workflows right in your repository with GitHub Actions.

(c) github.com

🐊Putout plugin helps with Github Actions.

Install

npm i @putout/plugin-github -D

Rules

{
    "rules": {
        "github/set-node-versions": "on",
        "github/set-checkout-version": "on",
        "github/set-setup-node-version": "on",
        "github/set-add-and-commit": "on"
    }
}

set-node-versions

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
-       node-version: [16.x, 18.x, 19.x]
+       node-version: [16.x, 18.x, 20.x]

You can override versions with:

{
    "rules": {
        "github/set-node-versions": ["on", {
            "versions": [
                "18.x",
                "20.x"
            ]
        }]
    }
}

set-checkout-version

  steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3

set-setup-node-version

  steps:
-      - uses: actions/setup-node@v2
+      - uses: actions/setup-node@v3

set-add-and-commit

  steps:
-      uses: EndBug/add-and-commit@v7
+      uses: EndBug/add-and-commit@v9

License

MIT