Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Vite to v5 and other dependencies #95

Merged
merged 7 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 12 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,28 @@
name: Test
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
lint:
runs-on: ubuntu-latest
env:
FORCE_COLOR: 2

steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Lint
run: pnpm lint
env:
FORCE_COLOR: 2
- name: Build
run: pnpm build
env:
FORCE_COLOR: 2
- name: Check size
uses: getsentry/size-limit-action@v5
with:
main_branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: build
30 changes: 30 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Size Limit
on:
pull_request:
branches:
- main

permissions:
pull-requests: write

jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Check size
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: end-of-file-fixer
exclude: 'src/icons/.*\.svg'
Expand All @@ -12,11 +12,11 @@ repos:
- id: check-toml
- id: check-yaml
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.2"
rev: "v3.1.0"
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v8.48.0"
rev: "v8.54.0"
hooks:
- id: eslint
files: \.([jt]s|astro)$ # *.js, *.ts and *.astro
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@
"preinstall": "npx only-allow pnpm"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^8.2.6",
"autoprefixer": "^10.4.14",
"@size-limit/preset-small-lib": "^11.0.0",
"autoprefixer": "^10.4.16",
"clean-publish": "^4.2.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-unicorn": "^47.0.0",
"postcss": "^8.4.26",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-unicorn": "^49.0.0",
"postcss": "^8.4.31",
"postcss-calc": "^9.0.1",
"postcss-css-variables": "^0.19.0",
"postcss-csso": "^6.0.1",
"postcss-url": "^10.1.3",
"prettier": "^3.0.0",
"size-limit": "^8.2.6",
"vite": "^4.4.4"
"prettier": "^3.1.0",
"size-limit": "^11.0.0",
"vite": "^5.0.0"
},
"prettier": {
"embeddedLanguageFormatting": "off"
Expand Down
Loading
Loading