mirror of
https://github.com/sern-handler/awesome-plugins
synced 2026-06-06 01:16:51 +00:00
chore: i don't give a damn 'bout my reputation
permalink: http://whatthecommit.com/1d321094aaf17617d868cba96c6ebbb5
This commit is contained in:
43
.github/workflows/continuous-integration.yml
vendored
43
.github/workflows/continuous-integration.yml
vendored
@@ -1,43 +0,0 @@
|
||||
name: Continuous Integration
|
||||
|
||||
on:
|
||||
# Trigger the workflow on push or pull request,
|
||||
# but only for the main branch
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'plugins/**'
|
||||
|
||||
jobs:
|
||||
Prettier:
|
||||
name: Run Prettier
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.FORCE_PUSH }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 17
|
||||
|
||||
# Prettier must be in `package.json`
|
||||
- name: Install Node.js dependencies
|
||||
run: npm i -g prettier && npm i
|
||||
|
||||
- name: Run Prettier
|
||||
run: prettier --write plugins/*.ts
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "style: run prettier"
|
||||
commit_options: '--no-verify --signoff'
|
||||
repository: .
|
||||
commit_user_name: "GitHub Actions"
|
||||
status_options: '--untracked-files=no'
|
||||
push_options: '--force'
|
||||
Reference in New Issue
Block a user