remove GITHUB prefix from secret

This commit is contained in:
sorrelbri 2020-05-25 23:54:38 -07:00
parent 56bfd0d87a
commit 89f1363378
3 changed files with 3 additions and 5 deletions

View file

@ -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:

View file

@ -1,4 +1,4 @@
const token = process.env.GITHUB_API_TOKEN;
const token = process.env.API_TOKEN;
const query = (user) => `query {
user (login: "${user}") {

View file

@ -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: {