mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 17:23:50 +01:00
github token change
This commit is contained in:
parent
bb0c358ff5
commit
a0c1b43024
@ -1,2 +1,2 @@
|
|||||||
GITHUB_TOKEN=your_token
|
GATSBY_GITHUB_TOKEN=your_token
|
||||||
GATSBY_MAPBOX_ACCESS_TOKEN=
|
GATSBY_MAPBOX_ACCESS_TOKEN=
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -37,4 +37,4 @@ jobs:
|
|||||||
run: npm run build
|
run: npm run build
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}
|
||||||
|
@ -169,7 +169,7 @@ You can simply use [Docker](https://www.docker.com) & [Docker Compose](https://d
|
|||||||
git clone git@github.com:kremalicious/blog.git
|
git clone git@github.com:kremalicious/blog.git
|
||||||
cd blog/
|
cd blog/
|
||||||
|
|
||||||
# GITHUB_TOKEN is required for some parts
|
# GATSBY_GITHUB_TOKEN is required for some parts
|
||||||
cp .env.sample .env
|
cp .env.sample .env
|
||||||
vi .env
|
vi .env
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
require('dotenv').config()
|
require('dotenv').config()
|
||||||
|
|
||||||
if (!process.env.GITHUB_TOKEN) {
|
if (!process.env.GATSBY_GITHUB_TOKEN) {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
console.warn(`
|
console.warn(`
|
||||||
|
|
||||||
⚠️ A GitHub token is required to build some parts of the blog.
|
⚠️ A GitHub token as GATSBY_GITHUB_TOKEN is required to build some parts of the blog.
|
||||||
⚠️ Check the README https://github.com/kremalicious/blog#-development.
|
⚠️ Check the README https://github.com/kremalicious/blog#-development.
|
||||||
|
|
||||||
`)
|
`)
|
||||||
|
@ -36,7 +36,7 @@ module.exports = [
|
|||||||
fieldName: 'github',
|
fieldName: 'github',
|
||||||
url: 'https://api.github.com/graphql',
|
url: 'https://api.github.com/graphql',
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `bearer ${process.env.GITHUB_TOKEN}`
|
Authorization: `bearer ${process.env.GATSBY_GITHUB_TOKEN}`
|
||||||
},
|
},
|
||||||
// Additional options to pass to node-fetch
|
// Additional options to pass to node-fetch
|
||||||
fetchOptions: {},
|
fetchOptions: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user