File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 11# .github/workflows/deploy-staging.yml
22
3- name : Deploy Client (Staging)
3+ name : Build Client (Staging)
44
55on :
66 push :
77 branches :
88 - main
99
1010permissions :
11- contents : read
11+ contents : read # only need to read the repo for a build
1212
1313jobs :
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].
You can’t perform that action at this time.
0 commit comments