Skip to content

Commit

Permalink
chore: use karmarunnerbot's token for semantic-release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ginsburg authored and anthony-redFox committed May 5, 2023
1 parent c822ca6 commit 1a4ce77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCS_GITHUB_TOKEN: ${{ secrets.DOCS_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.KARMARUNNERBOT_GITHUB_TOKEN }}
KARMA_TEST_NO_FALLBACK: 1
steps:
- uses: actions/checkout@v2
with:
token: ${{ env.GITHUB_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: 14
Expand Down
4 changes: 2 additions & 2 deletions tools/update-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const success = async (pluginConfig, { nextRelease, logger }) => {
const { name: docsPath } = dirSync()

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

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

Expand Down

0 comments on commit 1a4ce77

Please sign in to comment.