Skip to content

Commit 60c1f98

Browse files
Merge pull request #207 from commitd/stuarthendren/commitlint
fix(ci): build script publish token set up
2 parents 56fedd8 + 130a536 commit 60c1f98

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
- name: Checkout Commit
202202
uses: actions/checkout@v2
203203
with:
204-
fetch-depth: 0
204+
token: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
205205
- name: Use Node.js
206206
uses: actions/setup-node@v1
207207
with:
@@ -223,7 +223,11 @@ jobs:
223223
path: dist
224224
- name: Release
225225
env:
226-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
226+
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
227+
GIT_AUTHOR_NAME: commitd-bot
228+
GIT_AUTHOR_EMAIL: [email protected]
229+
GIT_COMMITTER_NAME: commitd-bot
230+
GIT_COMMITTER_EMAIL: [email protected]
227231
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
228232
run: npx semantic-release
229233
publish-storybook:
@@ -233,7 +237,7 @@ jobs:
233237
- name: Checkout Commit
234238
uses: actions/checkout@v2
235239
with:
236-
persist-credentials: false
240+
token: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
237241
fetch-depth: 0
238242
- name: Use Node.js
239243
uses: actions/setup-node@v1
@@ -253,4 +257,4 @@ jobs:
253257
if: github.ref == 'refs/heads/main'
254258
run: npm run deploy-storybook -- --ci
255259
env:
256-
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
260+
GH_TOKEN: commitd-bot:${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)