Merged the chores into one

This commit is contained in:
Core 2022-08-26 07:42:39 +01:00
parent dca76fee67
commit eb04b1039a
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0
2 changed files with 46 additions and 32 deletions

View file

@ -1,4 +1,4 @@
name: Continuous Integration (Lockfile)
name: Cider Chores
on:
push:
@ -8,30 +8,74 @@ on:
jobs:
update-lockfile:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- uses: pnpm/action-setup@v2.2.2
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Update lockfile
run: pnpm i --lockfile-only
- name: Commit Updated Lockfile
uses: stefanzweifel/git-auto-commit-action@v4.14.1
with:
commit_message: "chore: Updated Lockfile\n [ci skip]"
commit_message: "chore: Updated Lockfile"
commit_user_name: "cider-chore[bot]"
commit_user_email: "cider-chore[bot]@users.noreply.github.com"
prettier:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- uses: pnpm/action-setup@v2.2.2
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Prettify code
run: pnpm prettier
- name: Commit Prettier Code
uses: stefanzweifel/git-auto-commit-action@v4.14.1
with:
commit_message: "chore: Prettified Code\n [ci skip]"
commit_user_name: "cider-chore[bot]"
commit_user_email: "cider-chore[bot]@users.noreply.github.com"

View file

@ -1,30 +0,0 @@
name: Continuous Integration (Prettier)
on:
push:
branches:
- main
jobs:
prettier:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Prettify code
run: npm run prettier
- name: Commit Prettier Code
uses: stefanzweifel/git-auto-commit-action@v4.14.1
with:
commit_message: "chore: Prettified Code\n [ci skip]"
commit_user_name: "cider-chore[bot]"
commit_user_email: "cider-chore[bot]@users.noreply.github.com"