Skip to content

Commit b7b2a7d

Browse files
authored
Merge pull request #32 from kevinkace/build-updates
build updates
2 parents 57bacae + 10f314c commit b7b2a7d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/static.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Deploy SvelteKit to GitHub Pages
22

33
on:
4-
workflow_dispatch: # allows manual trigger
4+
push:
5+
branches: [main]
56

67
permissions:
78
contents: read
@@ -21,9 +22,10 @@ jobs:
2122
- uses: actions/setup-node@v4
2223
with:
2324
node-version-file: .nvmrc
25+
cache: npm # cache node_modules for faster builds
2426

2527
- name: Install dependencies
26-
run: npm i
28+
run: npm ci
2729

2830
# Build the SvelteKit project
2931
- name: Build project

0 commit comments

Comments
 (0)