Skip to content

Commit 5fcd0e3

Browse files
authored
Update deploy-staging.yml
1 parent 1627b31 commit 5fcd0e3

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# .github/workflows/deploy-staging.yml
22

3-
name: Deploy Client (Staging)
3+
name: Build Client (Staging)
44

55
on:
66
push:
77
branches:
88
- main
99

1010
permissions:
11-
contents: read
11+
contents: read # only need to read the repo for a build
1212

1313
jobs:
14-
build-and-deploy:
14+
build:
15+
name: Install & Build React Client
1516
runs-on: ubuntu-latest
1617

1718
steps:
@@ -23,15 +24,13 @@ jobs:
2324
with:
2425
node-version: '18'
2526

26-
- name: Install & build React client
27+
- name: Install dependencies
2728
working-directory: client
28-
run: |
29-
npm install # <— no lockfile needed
30-
npm run build
29+
run: npm install # no package-lock.json needed
3130

32-
- name: Deploy to GitHub Pages (staging)
33-
uses: JamesIves/github-pages-deploy-action@v4
34-
with:
35-
branch: gh-pages-staging
36-
folder: client/build
37-
token: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Build client
32+
working-directory: client
33+
run: npm run build
34+
35+
# ✅ Removed the GitHub Pages deploy step to avoid the permission
36+
# error from trying to push as github-actions[bot].

0 commit comments

Comments
 (0)