Skip to content

Commit 11d4ed4

Browse files
Fix workflows: fall back to github.token when GH_PAT absent; fix Pages base path
All six workflows now use `secrets.GH_PAT || github.token` so they work on public repos without a PAT configured. Pages base path updated from /ps-uswds-react/ to /gps-design-systems-react/ to match new repo name.
1 parent 7b1a415 commit 11d4ed4

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3
1818
with:
19-
token: ${{ secrets.GH_PAT }}
19+
token: ${{ secrets.GH_PAT || github.token }}
2020
persist-credentials: false
2121

2222
- name: Set up Node

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3
1818
with:
19-
token: ${{ secrets.GH_PAT }}
19+
token: ${{ secrets.GH_PAT || github.token }}
2020
persist-credentials: false
2121

2222
- name: Set up Node

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3
1818
with:
19-
token: ${{ secrets.GH_PAT }}
19+
token: ${{ secrets.GH_PAT || github.token }}
2020
persist-credentials: false
2121

2222
- name: Set up Node

.github/workflows/pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3
2121
with:
22-
token: ${{ secrets.GH_PAT }}
22+
token: ${{ secrets.GH_PAT || github.token }}
2323
persist-credentials: false
2424

2525
- name: Set up Node
@@ -38,7 +38,7 @@ jobs:
3838
env:
3939
# Sub-path that GitHub Pages serves this repo under.
4040
# Change to / if using a custom domain or org/user Pages site.
41-
COMPONENT_LAB_BASE: /ps-uswds-react/
41+
COMPONENT_LAB_BASE: /gps-design-systems-react/
4242
run: npm run build --workspace=apps/component-lab
4343

4444
- name: Upload Pages artifact

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3
1717
with:
18-
token: ${{ secrets.GH_PAT }}
18+
token: ${{ secrets.GH_PAT || github.token }}
1919
persist-credentials: false
2020

2121
- name: Set up Node

.github/workflows/sf-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3
2727
with:
28-
token: ${{ secrets.GH_PAT }}
28+
token: ${{ secrets.GH_PAT || github.token }}
2929
persist-credentials: false
3030
ref: ${{ github.event.inputs.sha }}
3131

0 commit comments

Comments
 (0)