Skip to content

Commit

Permalink
Try to build website again
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jul 28, 2021
1 parent 0736446 commit b1c69a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-16-16-yarn-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-16-16-yarn-lock-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-16-16-yarn
${{ runner.os }}-16-16-yarn-lock
- name: Install Dependencies using Yarn
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Lint
Expand All @@ -47,9 +47,9 @@ jobs:
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-16-${{matrix.graphql_version}}-yarn-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-16-${{matrix.graphql_version}}-yarn-lock-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-16-${{matrix.graphql_version}}-yarn
${{ runner.os }}-16-${{matrix.graphql_version}}-yarn-lock
- name: Use GraphQL v${{matrix.graphql_version}}
run: node ./scripts/match-graphql.js ${{matrix.graphql_version}}
- name: Install Dependencies using Yarn
Expand Down Expand Up @@ -79,9 +79,9 @@ jobs:
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{matrix.node_version}}-${{matrix.graphql_version}}-yarn-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-${{matrix.node_version}}-${{matrix.graphql_version}}-yarn-lock-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{matrix.node_version}}-${{matrix.graphql_version}}-yarn
${{ runner.os }}-${{matrix.node_version}}-${{matrix.graphql_version}}-yarn-lock
- name: Use GraphQL v${{matrix.graphql_version}}
run: node ./scripts/match-graphql.js ${{matrix.graphql_version}}
- name: Install Dependencies using Yarn
Expand Down
22 changes: 11 additions & 11 deletions scripts/build-api-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ async function buildApiDocs() {
const outputDir = path.join(__dirname, '../website/docs/api');
const sidebarsPath = path.join(__dirname, '../website/api-sidebar.json');

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

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

0 comments on commit b1c69a3

Please sign in to comment.