We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57bacae + 10f314c commit b7b2a7dCopy full SHA for b7b2a7d
1 file changed
.github/workflows/static.yml
@@ -1,7 +1,8 @@
1
name: Deploy SvelteKit to GitHub Pages
2
3
on:
4
- workflow_dispatch: # allows manual trigger
+ push:
5
+ branches: [main]
6
7
permissions:
8
contents: read
@@ -21,9 +22,10 @@ jobs:
21
22
- uses: actions/setup-node@v4
23
with:
24
node-version-file: .nvmrc
25
+ cache: npm # cache node_modules for faster builds
26
27
- name: Install dependencies
- run: npm i
28
+ run: npm ci
29
30
# Build the SvelteKit project
31
- name: Build project
0 commit comments