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=
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -37,4 +37,4 @@ jobs:
|
||||
run: npm run build
|
||||
env:
|
||||
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
|
||||
cd blog/
|
||||
|
||||
# GITHUB_TOKEN is required for some parts
|
||||
# GATSBY_GITHUB_TOKEN is required for some parts
|
||||
cp .env.sample .env
|
||||
vi .env
|
||||
|
||||
|
@ -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.
|
||||
|
||||
`)
|
||||
|
@ -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: {},
|
||||
|
Loading…
Reference in New Issue
Block a user