Skip to content

Commit b1c69a3

Browse files
committed
Try to build website again
1 parent 0736446 commit b1c69a3

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
uses: actions/cache@v2
2424
with:
2525
path: '**/node_modules'
26-
key: ${{ runner.os }}-16-16-yarn-${{ hashFiles('yarn.lock') }}
26+
key: ${{ runner.os }}-16-16-yarn-lock-${{ hashFiles('yarn.lock') }}
2727
restore-keys: |
28-
${{ runner.os }}-16-16-yarn
28+
${{ runner.os }}-16-16-yarn-lock
2929
- name: Install Dependencies using Yarn
3030
run: yarn install --ignore-engines && git checkout yarn.lock
3131
- name: Lint
@@ -47,9 +47,9 @@ jobs:
4747
uses: actions/cache@v2
4848
with:
4949
path: '**/node_modules'
50-
key: ${{ runner.os }}-16-${{matrix.graphql_version}}-yarn-${{ hashFiles('yarn.lock') }}
50+
key: ${{ runner.os }}-16-${{matrix.graphql_version}}-yarn-lock-${{ hashFiles('yarn.lock') }}
5151
restore-keys: |
52-
${{ runner.os }}-16-${{matrix.graphql_version}}-yarn
52+
${{ runner.os }}-16-${{matrix.graphql_version}}-yarn-lock
5353
- name: Use GraphQL v${{matrix.graphql_version}}
5454
run: node ./scripts/match-graphql.js ${{matrix.graphql_version}}
5555
- name: Install Dependencies using Yarn
@@ -79,9 +79,9 @@ jobs:
7979
uses: actions/cache@v2
8080
with:
8181
path: '**/node_modules'
82-
key: ${{ runner.os }}-${{matrix.node_version}}-${{matrix.graphql_version}}-yarn-${{ hashFiles('yarn.lock') }}
82+
key: ${{ runner.os }}-${{matrix.node_version}}-${{matrix.graphql_version}}-yarn-lock-${{ hashFiles('yarn.lock') }}
8383
restore-keys: |
84-
${{ runner.os }}-${{matrix.node_version}}-${{matrix.graphql_version}}-yarn
84+
${{ runner.os }}-${{matrix.node_version}}-${{matrix.graphql_version}}-yarn-lock
8585
- name: Use GraphQL v${{matrix.graphql_version}}
8686
run: node ./scripts/match-graphql.js ${{matrix.graphql_version}}
8787
- name: Install Dependencies using Yarn

scripts/build-api-docs.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ async function buildApiDocs() {
1313
const outputDir = path.join(__dirname, '../website/docs/api');
1414
const sidebarsPath = path.join(__dirname, '../website/api-sidebar.json');
1515

16-
// Get the upstream git remote -- we don't want to assume it exists or is named "upstream"
17-
const gitRemote = execSync('git remote -v', { encoding: 'utf-8' })
18-
.split('\n')
19-
.map(line => line.split('\t'))
20-
.find(([_name, description]) => description.includes('(fetch)'));
21-
const gitRemoteName = gitRemote && gitRemote[0];
22-
if (!gitRemoteName) {
23-
console.log('Unable to locate upstream git remote');
24-
process.exit(1);
25-
}
16+
// // Get the upstream git remote -- we don't want to assume it exists or is named "upstream"
17+
// const gitRemote = execSync('git remote -v', { encoding: 'utf-8' })
18+
// .split('\n')
19+
// .map(line => line.split('\t'))
20+
// .find(([_name, description]) => description.includes('(fetch)'));
21+
// const gitRemoteName = gitRemote && gitRemote[0];
22+
// if (!gitRemoteName) {
23+
// console.log('Unable to locate upstream git remote');
24+
// process.exit(1);
25+
// }
2626

2727
// An array of tuples where the first element is the package's name and the
2828
// the second element is the relative path to the package's entry point
@@ -65,7 +65,7 @@ async function buildApiDocs() {
6565
hideGenerator: true,
6666
hideBreadcrumbs: true,
6767
// skipSidebar: true,
68-
gitRemote: gitRemoteName,
68+
//gitRemote: gitRemoteName,
6969
gitRevision: 'master',
7070
tsconfig: path.resolve(__dirname, '../tsconfig.build.json'),
7171
entryPoints: modules.map(([_name, filePath]) => filePath),

0 commit comments

Comments
 (0)