Skip to content

Commit a5eba1e

Browse files
authored
feat: astro v6 - vite v8 (#50)
* feat: astro v6 - vite v8 * ci: fixing ci scripts * fix: update lock file * ci: update actions versions
1 parent eca038e commit a5eba1e

30 files changed

Lines changed: 6231 additions & 144 deletions

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Astro CI
22

3-
# Runs on all pull requests to main branch
43
on:
54
pull_request:
65
branches:
@@ -11,6 +10,9 @@ jobs:
1110
runs-on: ubuntu-latest
1211
steps:
1312
- name: Checkout your repository using git
14-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1514
- name: Install, build, and upload your site
16-
uses: withastro/action@v1
15+
uses: withastro/action@v5
16+
with:
17+
package-manager: pnpm@latest
18+
node-version: 22

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,18 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323

24-
# Initializes the CodeQL tools for scanning.
2524
- name: Initialize CodeQL
26-
uses: github/codeql-action/init@v3
25+
uses: github/codeql-action/init@v4
2726
# Override language selection by uncommenting this and choosing your languages
2827
# with:
2928
# languages: go, javascript, csharp, python, cpp, java
3029

3130
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3231
# If this step fails, then you should remove it and run the build manually (see below)
3332
- name: Autobuild
34-
uses: github/codeql-action/autobuild@v3
33+
uses: github/codeql-action/autobuild@v4
3534

3635
# ℹ️ Command-line programs to run using the OS shell.
3736
# 📚 https://git.io/JvXDl
@@ -45,4 +44,4 @@ jobs:
4544
# make release
4645

4746
- name: Perform CodeQL Analysis
48-
uses: github/codeql-action/analyze@v3
47+
uses: github/codeql-action/analyze@v4

.github/workflows/deploy-github-pages.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout your repository using git
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323
- name: Install, build, and upload your site
24-
uses: withastro/action@v1
24+
uses: withastro/action@v5
25+
with:
26+
package-manager: pnpm@latest
27+
node-version: 22
2528

2629
deploy:
2730
needs: build
@@ -32,4 +35,4 @@ jobs:
3235
steps:
3336
- name: Deploy to GitHub Pages
3437
id: deployment
35-
uses: actions/deploy-pages@v3
38+
uses: actions/deploy-pages@v4

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export default defineConfig({
2626
remarkPlugins: [remarkReadingTime],
2727
},
2828
image: {
29-
// Example: Enable the Sharp-based image service
3029
service: { entrypoint: "astro/assets/services/sharp" },
3130
},
31+
experimental: {
32+
rustCompiler: true,
33+
},
3234
});

package.json

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
"url": "https://github.com/natebwangsut/natebwangsut.github.io"
2020
},
2121
"dependencies": {
22-
"@astrojs/react": "^3.6.2",
23-
"@astrojs/rss": "^4.0.7",
24-
"@astrojs/sitemap": "^3.1.6",
22+
"@astrojs/compiler-rs": "latest",
23+
"@astrojs/react": "^5.0.0",
24+
"@astrojs/rss": "^4.0.17",
25+
"@astrojs/sitemap": "^3.7.1",
2526
"@iconify-json/ri": "^1.1.22",
2627
"@react-spring/web": "^9.7.4",
27-
"astro": "^4.13.3",
28+
"astro": "^6.0.0",
2829
"astro-icon": "^1.1.0",
2930
"astro-robots-txt": "^1.0.0",
3031
"cobe": "^0.6.3",
@@ -34,16 +35,28 @@
3435
"reading-time": "^1.5.0"
3536
},
3637
"devDependencies": {
38+
"@astrojs/check": "^0.9.7",
39+
"@types/markdown-it": "^14.1.2",
40+
"@types/mdast": "^4.0.4",
3741
"@types/react": "^18.3.3",
3842
"@types/react-dom": "^18.3.0",
39-
"@unocss/astro": "^0.58.9",
40-
"@unocss/postcss": "^0.58.9",
41-
"@unocss/preset-uno": "^0.58.9",
42-
"@unocss/reset": "^0.58.9",
43-
"autoprefixer": "^10.4.20",
43+
"@types/sanitize-html": "^2.16.1",
44+
"@unocss/astro": "^66.6.6",
45+
"@unocss/postcss": "^66.6.6",
46+
"@unocss/reset": "^66.6.6",
4447
"markdown-it": "^14.1.0",
4548
"motion": "^10.18.0",
4649
"sanitize-html": "^2.13.0",
47-
"unocss": "^0.58.9"
50+
"typescript": "^5.9.3",
51+
"unocss": "^66.6.6"
52+
},
53+
"pnpm": {
54+
"overrides": {
55+
"vite": "^8.0.0"
56+
},
57+
"onlyBuiltDependencies": [
58+
"esbuild",
59+
"sharp"
60+
]
4861
}
4962
}

0 commit comments

Comments
 (0)