1
0
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:
Matthias Kretschmann 2019-11-17 13:11:42 +01:00
parent bb0c358ff5
commit a0c1b43024
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 6 additions and 6 deletions

View File

@ -1,2 +1,2 @@
GITHUB_TOKEN=your_token
GATSBY_GITHUB_TOKEN=your_token
GATSBY_MAPBOX_ACCESS_TOKEN=

View File

@ -37,4 +37,4 @@ jobs:
run: npm run build
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}

View File

@ -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
cd blog/
# GITHUB_TOKEN is required for some parts
# GATSBY_GITHUB_TOKEN is required for some parts
cp .env.sample .env
vi .env

View File

@ -1,10 +1,10 @@
require('dotenv').config()
if (!process.env.GITHUB_TOKEN) {
if (!process.env.GATSBY_GITHUB_TOKEN) {
// eslint-disable-next-line
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.
`)

View File

@ -36,7 +36,7 @@ module.exports = [
fieldName: 'github',
url: 'https://api.github.com/graphql',
headers: {
Authorization: `bearer ${process.env.GITHUB_TOKEN}`
Authorization: `bearer ${process.env.GATSBY_GITHUB_TOKEN}`
},
// Additional options to pass to node-fetch
fetchOptions: {},