From 3ed2648c4cee7a29f64fd5d7e702457a0ea5a3f8 Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Tue, 31 Dec 2019 23:43:52 +0800 Subject: [PATCH] chore: tweak --- .github/workflows/test.yaml | 1 + build/publish.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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, '..')