Skip to content

Commit ed0ef4c

Browse files
committed
test workflow auth with PAT
1 parent c0599e1 commit ed0ef4c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/npm-md-css.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
20+
token: ${{ secrets.GH_PAT }}
2121
- uses: actions/setup-node@v4
2222
with:
2323
node-version: 20
2424
- name: Git config
2525
run: |
26-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
27-
git config --global user.name "github-actions[bot]"
26+
git config --global user.email "${{secrets.GH_EMAIL}}"
27+
git config --global user.name "${{secrets.GH_NAME}}"
2828
2929
- name: Apply version bump (major)
3030
if: contains(github.event.pull_request.labels.*.name, 'major')
@@ -53,7 +53,7 @@ jobs:
5353
- name: Git push version bump
5454
run: git push origin main --force
5555

56-
56+
5757
build:
5858
name: Build & Publish
5959
needs: bump

.github/workflows/npm-md-react.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
20+
token: ${{ secrets.GH_PAT }}
2121
- uses: actions/setup-node@v4
2222
with:
2323
node-version: 20
2424
- name: Git config
2525
run: |
26-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
27-
git config --global user.name "github-actions[bot]"
26+
git config --global user.email "${{secrets.GH_EMAIL}}"
27+
git config --global user.name "${{secrets.GH_NAME}}"
2828
2929
- name: Apply version bump (major)
3030
if: contains(github.event.pull_request.labels.*.name, 'major')
@@ -53,7 +53,7 @@ jobs:
5353
- name: Git push version bump
5454
run: git push origin main --force
5555

56-
56+
5757
build:
5858
name: Build & Publish
5959
needs: bump

0 commit comments

Comments
 (0)