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
|
- 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:
|
||||||
|
|
|
@ -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}") {
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
Loading…
Reference in a new issue