diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b34a1c..6564b26 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: - name: Test run: npm run test - name: Build - run: ${{secrets.GITHUB_API_TOKEN}} npm run build + run: ${{secrets.API_TOKEN}} npm run build - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: diff --git a/src/utils/index.js b/src/utils/index.js index 7feaeb2..3a459fa 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -1,4 +1,4 @@ -const token = process.env.GITHUB_API_TOKEN; +const token = process.env.API_TOKEN; const query = (user) => `query { user (login: "${user}") { diff --git a/webpack.common.js b/webpack.common.js index fe29932..31e1870 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -14,9 +14,7 @@ module.exports = { template: "index.html", }), new DefinePlugin({ - "process.env.GITHUB_API_TOKEN": JSON.stringify( - process.env.GITHUB_API_TOKEN - ), + "process.env.API_TOKEN": JSON.stringify(process.env.API_TOKEN), }), ], output: {