{"name":"@putout/plugin-github","version":"13.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin helps with github actions","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-github#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","github"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1","supertape":"^10.0.0"},"peerDependencies":{"putout":">=36"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-github@13.0.0","gitHead":"816ddfe3a73e2d21f5ec8adf8a7c94399a8aa38c","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"23.0.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/in04gzsE9X/a38DjeylNWgHpgMbrN+w5uFCOsgUCL3YC2Uc1Zw1sLDSuo0qdHwAiWWnkRxPFa6W1L7r+EwDYg==","shasum":"8b0e09e246c6b0074196db554e62096925d200c5","tarball":"http://registry-npm.ywwl.com/@putout/plugin-github/download/@putout/plugin-github-13.0.0.tgz","fileCount":13,"unpackedSize":18721,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDN/nz1jgFpNQ/dUs3VQVPZvEslWE5ATJO/L6qvEm7DxAiEAhe3tpnyuTS7A8lOPXCAAisSaE7s8OqnfJAQQldMmrXY="}],"size":5475,"noattachment":false,"key":"/@putout/plugin-github/-/@putout/plugin-github-13.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-github_13.0.0_1729250128596_0.12591787270961818"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-github [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-github.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-github \"npm\"\n\n> Automate, customize, and execute your software development workflows right in your repository with **GitHub Actions**.\n>\n> (c) [github.com](https://docs.github.com/en/actions)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin helps with [**Github Actions**](https://github.com/features/actions).\n\n## Install\n\n```\nnpm i @putout/plugin-github -D\n```\n\n## Rules\n\n- ✅ [add-continue-on-error-to-add-and-commit][#add-continue-on-error-to-add-and-commit];\n- ✅ [add-continue-on-error-to-coveralls][#add-continue-on-error-to-coveralls];\n- ✅ [add-property.js][#add-property.js];\n- ✅ [convert-npm-to-bun][#convert-npm-to-bun];\n- ✅ [insert-rust][#insert-rust];\n- ✅ [install-bun][#install-bun];\n- ✅ [set-node-versions][#set-node-versions];\n- ✅ [update-actions][#update-actions];\n\n## Config\n\n```json\n{\n    \"rules\": {\n        \"github/add-continue-on-error-to-coveralls\": \"on\",\n        \"github/add-continue-on-error-to-add-and-commit\": \"on\",\n        \"github/set-node-versions\": \"on\",\n        \"github/install-bun\": \"on\",\n        \"github/install-rust\": \"on\",\n        \"github/convert-npm-to-bun\": \"on\",\n        \"github/update-actions\": \"on\"\n    }\n}\n```\n\n## add-continue-on-error-to-coveralls\n\nAdd ability to continue when cannot submit coverage to Coveralls using [`continue-on-error`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error).\n\n```diff\n  - name: Commit fixes\n    continue-on-error: true\n    uses: EndBug/add-and-commit@v9\n    with:\n      fetch: --force\n      message: \"chore: ${{ env.NAME }}: actions: lint ☘️\"\n      pull: --rebase --autostash\n+   continue-on-error: true\n```\n\n## add-continue-on-error-to-coveralls\n\nAdd ability to continue when cannot submit coverage to Coveralls using [`continue-on-error`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error).\n\n```diff\n  - name: Coveralls\n    uses: coverallsapp/github-action@v2\n    with:\n      github-token: ${{ secrets.GITHUB_TOKEN }}\n+   continue-on-error: true\n```\n\n## set-node-versions\n\n```diff\njobs:\n  build:\n\n    runs-on: ubuntu-latest\n\n    strategy:\n      matrix:\n-       node-version: [16.x, 18.x, 20.x, 21.x]\n+       node-version: [18.x, 20.x, 21.x, 22.x, 23.x]\n```\n\nYou can override versions with:\n\n```json\n{\n    \"rules\": {\n        \"github/set-node-versions\": [\"on\", {\n            \"versions\": [\n                \"16.x\",\n                \"18.x\",\n                \"20.x\",\n                \"21.x\"\n            ]\n        }]\n    }\n}\n```\n\n## update-actions\n\n`coverallsapp/github-action@master`:\n\n```diff\n      - name: Coveralls\n-       uses: coverallsapp/github-action@master\n+       uses: coverallsapp/github-action@v2\n```\n\n`docker/login-action`:\n\n```diff\n      - name: Login to Docker Hub\n-       uses: docker/login-action@v2\n+       uses: docker/login-action@v3\n```\n\n`docker/build-push`:\n\n```diff\n      - name: Build and push alpine-image\n-       uses: docker/build-push-action@v4\n+       uses: docker/build-push-action@v5\n```\n\n`docker/setup-buildx`:\n\n```diff\n      - name: Set up Docker Buildx\n-       uses: docker/setup-buildx-action@v2\n+       uses: docker/setup-buildx-action@v3\n```\n\n`actions/checkout`:\n\n```diff\n  steps:\n-      - uses: actions/checkout@v2\n+      - uses: actions/checkout@v3\n```\n\n`actions/cache`:\n\n```diff\n  steps:\n-      - uses: actions/cache@v3\n+      - uses: actions/checkout@v4\n```\n\n`actions/setup-node`:\n\n```diff\n  steps:\n-      - uses: actions/setup-node@v2\n+      - uses: actions/setup-node@v3\n```\n\n`docker/setup-quemu`:\n\n```diff\n  steps:\n        - name: Set up QEMU\n-         uses: docker/setup-qemu-action@v2\n+         uses: docker/setup-qemu-action@v3\n```\n\n`EndBug/add-and-commit`:\n\n```diff\n  steps:\n-      uses: EndBug/add-and-commit@v7\n+      uses: EndBug/add-and-commit@v9\n```\n\n## install-bun\n\n> Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called bun.\n>\n> 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.\n>\n> (c) [bun.sh](https://bun.sh).\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/2d10cb903c532df454a8dfd6de2780c3/ee6b347faef340f20b7c1aa53564f72572c493df).\n\n```diff\nsteps:\n  - uses: actions/checkout@v3\n  - name: Use Node.js ${{ matrix.node-version }}\n    uses: actions/setup-node@v3\n    with:\n      node-version: ${{ matrix.node-version }}\n+  - uses: oven-sh/setup-bun@v1\n+    with:\n+      bun-version: latest\n```\n\n## install-rust\n\n> A language empowering everyone to build reliable and efficient software.\n>\n> (c) [Rust](https://rust-lang.orgh).\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/ad1fbd14cf16ce2e0ebf768fbfc07387/ec47bc0fe622b0001070c871e423979f7d29cbfb).\n\n```diff\nsteps:\n  - uses: actions-rs/toolchain@v1\n    with:\n      toolchain: stable\n+  - name: Install Rust\n+    run: runstup update\n```\n\n## install-bun\n\n> Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called bun.\n>\n> 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.\n>\n> (c) [bun.sh](https://bun.sh).\n\nBun install works much faster: 40s before - 2s after.\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/e03cc6ff4d9927568dc4f6f608be10ef/52146f4cbbc02c5bc8d7242af94d37f8734b3b36).\n\n```diff\n- name: Install Redrun\n-    run: npm i redrun -g\n+    run: bun i redrun -g --no-save\n- name: Install\n-    run: npm install\n+    run: bun i --no-save\n```\n\nMIT\n","publish_time":1729250128806,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1729250128806,"dist-tags":{"latest":"21.2.1"}}