Skip to content

Commit c30d764

Browse files
committed
chore: fix security vulnerabilities and setup github pages deployment
1 parent 98b69f7 commit c30d764

6 files changed

Lines changed: 391 additions & 339 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
cache: 'pnpm'
30+
31+
- name: Install dependencies
32+
run: pnpm install
33+
34+
- name: Build Astro
35+
run: pnpm run build
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: ./dist
41+
42+
deploy:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
only-built-dependencies=esbuild,sharp

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { defineConfig } from 'astro/config';
22
import tailwindcss from '@tailwindcss/vite';
33

44
export default defineConfig({
5+
site: 'https://Rimba-maker.github.io',
6+
base: 'beauty-brand',
57
vite: {
68
plugins: [tailwindcss()],
79
},

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@
1111
"check": "astro check"
1212
},
1313
"dependencies": {
14-
"astro": "6.3.1",
15-
"tailwindcss": "4.2.4",
16-
"@tailwindcss/vite": "4.2.4"
14+
"@tailwindcss/vite": "4.3.0",
15+
"astro": "6.3.7",
16+
"tailwindcss": "4.3.0"
1717
},
1818
"devDependencies": {
19-
"@astrojs/check": "0.9.4",
20-
"typescript": "5.7.3",
21-
"@types/node": "25.6.2"
19+
"@astrojs/check": "0.9.9",
20+
"@types/node": "25.9.1",
21+
"typescript": "6.0.3"
2222
},
2323
"packageManager": "pnpm@10.29.2",
2424
"pnpm": {
25-
"onlyBuiltDependencies": ["esbuild", "sharp"]
25+
"overrides": {
26+
"yaml": ">=2.8.3"
27+
}
2628
}
2729
}

0 commit comments

Comments
 (0)