Skip to content

Commit

Permalink
chore: add prettier-plugin-tailwindcss and format files, remove unuse…
Browse files Browse the repository at this point in the history
…d prettier-eslint
  • Loading branch information
artaommahe committed Jun 22, 2024
1 parent 610004d commit e91ec33
Show file tree
Hide file tree
Showing 13 changed files with 203 additions and 941 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
push:
branches:
- main
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -16,30 +16,30 @@ permissions:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build -- --base-href=/${{ github.event.repository.name }}/
- name: Prepare
run: cp ./dist/${{ github.event.repository.name }}/browser/index.html ./dist/${{ github.event.repository.name }}/browser/404.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist/${{ github.event.repository.name }}/browser
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build -- --base-href=/${{ github.event.repository.name }}/
- name: Prepare
run: cp ./dist/${{ github.event.repository.name }}/browser/index.html ./dist/${{ github.event.repository.name }}/browser/404.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist/${{ github.event.repository.name }}/browser

deploy:
environment:
Expand Down
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ module.exports = {
},
},
],
plugins: ['prettier-plugin-tailwindcss'],
};
Loading

0 comments on commit e91ec33

Please sign in to comment.