Skip to content

Commit 32a1771

Browse files
authored
update build to npm ci, no manual option (#34)
* picomatch * npm ci once again
1 parent fed1163 commit 32a1771

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

.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 # install dependencies using lock file
2729

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

package-lock.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)