@putout/plugin-github
🐊Putout plugin helps with github actions
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-github 
SYNC missed versions from official npm registry.

@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/add-continue-on-error-to-coveralls": "on",
        "github/add-continue-on-error-to-add-and-commit": "on",
        "github/set-node-versions": "on",
        "github/install-bun": "on",
        "github/install-rust": "on",
        "github/convert-npm-to-bun": "on",
        "github/update-actions": "on"
    }
}

add-continue-on-error-to-coveralls

Add ability to continue when cannot submit coverage to Coveralls using continue-on-error.

  - name: Commit fixes
    continue-on-error: true
    uses: EndBug/add-and-commit@v9
    with:
      fetch: --force
      message: "chore: ${{ env.NAME }}: actions: lint ☘️"
      pull: --rebase --autostash
+   continue-on-error: true

add-continue-on-error-to-coveralls

Add ability to continue when cannot submit coverage to Coveralls using continue-on-error.

  - name: Coveralls
    uses: coverallsapp/github-action@v2
    with:
      github-token: ${{ secrets.GITHUB_TOKEN }}
+   continue-on-error: true

set-node-versions

jobs:
  build:

    runs-on: ubuntu-latest

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

You can override versions with:

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

update-actions

coverallsapp/github-action@master:

      - name: Coveralls
-       uses: coverallsapp/github-action@master
+       uses: coverallsapp/github-action@v2

docker/login-action:

      - name: Login to Docker Hub
-       uses: docker/login-action@v2
+       uses: docker/login-action@v3

docker/build-push:

      - name: Build and push alpine-image
-       uses: docker/build-push-action@v4
+       uses: docker/build-push-action@v5

docker/setup-buildx:

      - name: Set up Docker Buildx
-       uses: docker/setup-buildx-action@v2
+       uses: docker/setup-buildx-action@v3

actions/checkout:

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

actions/cache:

  steps:
-      - uses: actions/cache@v3
+      - uses: actions/checkout@v4

actions/setup-node:

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

docker/setup-quemu:

  steps:
        - name: Set up QEMU
-         uses: docker/setup-qemu-action@v2
+         uses: docker/setup-qemu-action@v3

EndBug/add-and-commit:

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

install-bun

Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called bun.

At its core is the Bun runtime, a fast JavaScript runtime designed as a drop-in replacement for Node.js. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage.

(c) bun.sh.

Checkout in 🐊Putout Editor.

steps:
  - uses: actions/checkout@v3
  - name: Use Node.js ${{ matrix.node-version }}
    uses: actions/setup-node@v3
    with:
      node-version: ${{ matrix.node-version }}
+  - uses: oven-sh/setup-bun@v1
+    with:
+      bun-version: latest

install-rust

A language empowering everyone to build reliable and efficient software.

(c) Rust.

Checkout in 🐊Putout Editor.

steps:
  - uses: actions-rs/toolchain@v1
    with:
      toolchain: stable
+  - name: Install Rust
+    run: runstup update

install-bun

Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called bun.

At its core is the Bun runtime, a fast JavaScript runtime designed as a drop-in replacement for Node.js. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage.

(c) bun.sh.

Bun install works much faster: 40s before - 2s after.

Checkout in 🐊Putout Editor.

- name: Install Redrun
-    run: npm i redrun -g
+    run: bun i redrun -g --no-save
- name: Install
-    run: npm install
+    run: bun i --no-save

MIT

Current Tags

  • 12.3.0                                ...           latest (7 months ago)

42 Versions

  • 12.3.0                                ...           7 months ago
  • 12.2.0                                ...           7 months ago
  • 12.1.1                                ...           8 months ago
  • 12.1.0                                ...           8 months ago
  • 12.0.2                                ...           8 months ago
  • 12.0.1                                ...           8 months ago
  • 12.0.0                                ...           8 months ago
  • 11.0.0                                ...           a year ago
  • 10.0.0                                ...           a year ago
  • 9.1.0                                ...           a year ago
  • 9.0.0                                ...           a year ago
  • 8.2.0                                ...           a year ago
  • 8.1.0                                ...           a year ago
  • 8.0.4                                ...           a year ago
  • 8.0.3                                ...           a year ago
  • 8.0.2                                ...           a year ago
  • 8.0.1                                ...           a year ago
  • 8.0.0                                ...           a year ago
  • 7.6.0                                ...           a year ago
  • 7.5.0                                ...           a year ago
  • 7.4.0                                ...           a year ago
  • 7.3.0                                ...           a year ago
  • 7.2.0                                ...           a year ago
  • 7.1.0                                ...           a year ago
  • 7.0.0                                ...           a year ago
  • 6.0.1                                ...           a year ago
  • 6.0.0                                ...           a year ago
  • 5.1.0                                ...           a year ago
  • 5.0.0                                ...           2 years ago
  • 4.4.0                                ...           2 years ago
  • 4.3.0                                ...           2 years ago
  • 4.2.0                                ...           2 years ago
  • 4.1.0                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (9)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE