diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0cba1fa622..2925a07ccf 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,6 +11,7 @@ jobs: build: runs-on: ubuntu-latest env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - name: Check out diff --git a/build/publish.ts b/build/publish.ts index b8853caade..6c85a0a9c6 100644 --- a/build/publish.ts +++ b/build/publish.ts @@ -12,7 +12,7 @@ if (CI && (GITHUB_REF !== 'refs/heads/master' || GITHUB_EVENT_NAME !== 'push')) } const github = new Octokit({ - auth: process.env.GH_TOKEN, + auth: process.env.GITHUB_TOKEN, }) const cwd = resolve(__dirname, '..')