File tree 1 file changed +12
-13
lines changed 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 1
1
# .github/workflows/deploy-staging.yml
2
2
3
- name : Deploy Client (Staging)
3
+ name : Build Client (Staging)
4
4
5
5
on :
6
6
push :
7
7
branches :
8
8
- main
9
9
10
10
permissions :
11
- contents : read
11
+ contents : read # only need to read the repo for a build
12
12
13
13
jobs :
14
- build-and-deploy :
14
+ build :
15
+ name : Install & Build React Client
15
16
runs-on : ubuntu-latest
16
17
17
18
steps :
@@ -23,15 +24,13 @@ jobs:
23
24
with :
24
25
node-version : ' 18'
25
26
26
- - name : Install & build React client
27
+ - name : Install dependencies
27
28
working-directory : client
28
- run : |
29
- npm install # <— no lockfile needed
30
- npm run build
29
+ run : npm install # no package-lock.json needed
31
30
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