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 - name: Test
run: npm run test run: npm run test
- name: Build - name: Build
run: ${{secrets.GITHUB_API_TOKEN}} npm run build run: ${{secrets.API_TOKEN}} npm run build
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with:

View file

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

View file

@ -14,9 +14,7 @@ module.exports = {
template: "index.html", template: "index.html",
}), }),
new DefinePlugin({ new DefinePlugin({
"process.env.GITHUB_API_TOKEN": JSON.stringify( "process.env.API_TOKEN": JSON.stringify(process.env.API_TOKEN),
process.env.GITHUB_API_TOKEN
),
}), }),
], ],
output: { output: {