Skip to content

Commit

Permalink
Prettify PR's via GH-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yashash-pugalia committed Oct 22, 2022
1 parent 0aafba1 commit 07ae68b
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 73 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/Prettier-PR.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Prettier PR

on:
pull_request:
types: [opened, reopened, synchronize]

permissions: write-all

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.BOT }}

- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm

- name: Magic
run: |
npm ci
npm run prettier
git config --global user.email "[email protected]"
git config --global user.name "win11bot"
git add .
git commit -m "Prettier PR"
git push
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

148 changes: 75 additions & 73 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,75 +1,77 @@
{
"name": "win11react",
"description": "Win11 made in React",
"repository": "https://github.com/blueedgetechno/win11React",
"version": "0.1.1",
"private": true,
"dependencies": {
"-": "^0.0.1",
"@crowdin/cli": "^3.8.1",
"@fortawesome/fontawesome-svg-core": "^6.2.0",
"@fortawesome/free-regular-svg-icons": "^6.2.0",
"@fortawesome/free-solid-svg-icons": "^6.2.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@sentry/react": "^7.14.0",
"@sentry/tracing": "^7.14.0",
"@tauri-apps/api": "^1.1.0",
"@widgetbot/react-embed": "1.5.0",
"@win11react/react-canvas-draw": "1.2.2",
"axios": "^0.27.2",
"eslint-config-react-app": "^7.0.1",
"firebase": "9.9.1",
"firebaseui": "^6.0.1",
"i18next": "^21.9.2",
"i18next-browser-languagedetector": "^6.1.5",
"i18next-http-backend": "^1.4.4",
"i18next-xhr-backend": "^3.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^3.1.4",
"react-firebase-hooks": "^5.0.3",
"react-i18next": "^11.18.6",
"react-lazy-load-image-component": "^1.5.5",
"react-player": "^2.11.0",
"react-redux": "^8.0.4",
"react-scripts": "^5.0.1",
"redux": "^4.2.0",
"sass": "^1.55.0",
"translation-check": "^1.0.2"
},
"scripts": {
"start": "vite",
"build": "vite build",
"ghbuild": "CI=false vite build",
"turbuild": "react-scripts build",
"tauri": "tauri",
"crowdin": "crowdin"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@tauri-apps/cli": "^1.0.5",
"@vitejs/plugin-react": "2.0.0",
"autoprefixer": "^10.4.12",
"postcss": "^8.4.17",
"tailwindcss": "^3.1.8",
"vite": "3.0.4",
"vite-plugin-pwa": "^0.12.8"
}
"name": "win11react",
"description": "Win11 made in React",
"repository": "https://github.com/blueedgetechno/win11React",
"version": "0.1.1",
"private": true,
"dependencies": {
"-": "^0.0.1",
"@crowdin/cli": "^3.8.1",
"@fortawesome/fontawesome-svg-core": "^6.2.0",
"@fortawesome/free-regular-svg-icons": "^6.2.0",
"@fortawesome/free-solid-svg-icons": "^6.2.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@sentry/react": "^7.14.0",
"@sentry/tracing": "^7.14.0",
"@tauri-apps/api": "^1.1.0",
"@widgetbot/react-embed": "1.5.0",
"@win11react/react-canvas-draw": "1.2.2",
"axios": "^0.27.2",
"eslint-config-react-app": "^7.0.1",
"firebase": "9.9.1",
"firebaseui": "^6.0.1",
"i18next": "^21.9.2",
"i18next-browser-languagedetector": "^6.1.5",
"i18next-http-backend": "^1.4.4",
"i18next-xhr-backend": "^3.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^3.1.4",
"react-firebase-hooks": "^5.0.3",
"react-i18next": "^11.18.6",
"react-lazy-load-image-component": "^1.5.5",
"react-player": "^2.11.0",
"react-redux": "^8.0.4",
"react-scripts": "^5.0.1",
"redux": "^4.2.0",
"sass": "^1.55.0",
"translation-check": "^1.0.2"
},
"scripts": {
"start": "vite",
"build": "vite build",
"ghbuild": "CI=false vite build",
"prettier": "prettier --write .",
"turbuild": "react-scripts build",
"tauri": "tauri",
"crowdin": "crowdin"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@tauri-apps/cli": "^1.0.5",
"@vitejs/plugin-react": "2.0.0",
"autoprefixer": "^10.4.12",
"postcss": "^8.4.17",
"prettier": "^2.7.1",
"tailwindcss": "^3.1.8",
"vite": "3.0.4",
"vite-plugin-pwa": "^0.12.8"
}
}

0 comments on commit 07ae68b

Please sign in to comment.