Skip to content

Commit a06d5a3

Browse files
author
tanvi
committed
changes to gitignore and deploy.yml
1 parent ac0bd59 commit a06d5a3

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,33 @@ on:
66
- main
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
deploy:
1114
runs-on: ubuntu-latest
1215

1316
steps:
1417
- name: Checkout code
15-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1619

1720
- name: Setup Node.js
18-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
1922
with:
2023
node-version: '18'
2124
cache: 'npm'
25+
cache-dependency-path: package-lock.json
2226

2327
- name: Install dependencies
2428
run: npm ci
2529

2630
- name: Build
2731
run: npm run build
2832

29-
- name: Deploy
30-
run: echo "Deployment step - configure based on your hosting platform"
31-
# Add your deployment commands here
32-
# Examples:
33-
# - Deploy to GitHub Pages
34-
# - name: Deploy to GitHub Pages
35-
# uses: peaceiris/actions-gh-pages@v3
36-
# with:
37-
# github_token: ${{ secrets.GITHUB_TOKEN }}
38-
# publish_dir: ./dist
33+
- name: Deploy to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v4
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./dist
3938

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Dependencies
22
node_modules/
3-
package-lock.json
43
yarn.lock
54
pnpm-lock.yaml
65

0 commit comments

Comments
 (0)