mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 09:13:19 +01:00
env update
This commit is contained in:
parent
fbdeef6956
commit
e52f5f34ea
@ -1 +1 @@
|
|||||||
#GITHUB_TOKEN=
|
#GATSBY_GITHUB_TOKEN=
|
||||||
|
43
.github/workflows/test.yml
vendored
43
.github/workflows/test.yml
vendored
@ -1,10 +1,9 @@
|
|||||||
name: Node CI
|
name: Test
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
@ -12,15 +11,31 @@ jobs:
|
|||||||
node-version: [12.x]
|
node-version: [12.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: npm install, build, and test
|
|
||||||
run: |
|
- name: Cache node modules
|
||||||
npm ci
|
uses: actions/cache@v1
|
||||||
npm test
|
with:
|
||||||
npm run build --if-present
|
path: node_modules
|
||||||
env:
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
|
||||||
CI: true
|
restore-keys: |
|
||||||
|
${{ runner.OS }}-build-${{ env.cache-name }}-
|
||||||
|
${{ runner.OS }}-build-
|
||||||
|
${{ runner.OS }}-
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
npm test
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
npm run build --if-present
|
||||||
|
env:
|
||||||
|
CI: true
|
||||||
|
GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ npm-debug.log*
|
|||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
plugins/gatsby-plugin-matomo
|
plugins/gatsby-plugin-matomo
|
||||||
coverage
|
coverage
|
||||||
|
.env
|
||||||
|
@ -29,7 +29,7 @@ function truncate(n, useWordBoundary) {
|
|||||||
const gitHubConfig = {
|
const gitHubConfig = {
|
||||||
headers: {
|
headers: {
|
||||||
'User-Agent': 'kremalicious/portfolio',
|
'User-Agent': 'kremalicious/portfolio',
|
||||||
Authorization: `token ${process.env.GITHUB_TOKEN}`
|
Authorization: `token ${process.env.GATSBY_GITHUB_TOKEN}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user