diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 98c478e01..424d8ca4e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,7 @@ jobs: SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCS_GITHUB_TOKEN: ${{ secrets.DOCS_GITHUB_TOKEN }} KARMA_TEST_NO_FALLBACK: 1 steps: - uses: actions/checkout@v2 diff --git a/tools/update-docs.js b/tools/update-docs.js index ca6f6ef7a..a71bb6d09 100644 --- a/tools/update-docs.js +++ b/tools/update-docs.js @@ -8,10 +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 GH_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.GH_TOKEN}@github.com/karma-runner/karma-runner.github.com.git` + // button on GitHub. The only added part is DOCS_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 options = { encoding: 'utf8', cwd: docsPath }