Skip to content

Commit 3ac2e07

Browse files
authored
Update deploy.yml
1 parent 5476f1e commit 3ac2e07

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,20 @@ jobs:
3030
uses: actions/setup-node@v4
3131
with:
3232
node-version: '22.x'
33-
cache: 'npm' # Enable caching for faster builds
33+
cache: 'npm'
3434

3535
- name: Install dependencies
36-
run: npm ci # Use 'ci' instead of 'install' for reproducible builds
36+
run: npm ci
3737

3838
- name: Build
3939
run: npm run build
4040

4141
- name: Upload artifact
4242
uses: actions/upload-pages-artifact@v3
4343
with:
44-
path: './dist' # Change to your build output directory
44+
path: './dist'
4545

4646
deploy:
47-
# Only deploy on push to develop, not on PRs
4847
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
4948

5049
environment:

0 commit comments

Comments
 (0)