remove GITHUB prefix from secret
This commit is contained in:
parent
56bfd0d87a
commit
89f1363378
3 changed files with 3 additions and 5 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const token = process.env.GITHUB_API_TOKEN;
|
||||
const token = process.env.API_TOKEN;
|
||||
|
||||
const query = (user) => `query {
|
||||
user (login: "${user}") {
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue