File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,20 @@ jobs:
7070 - name : Install dependencies
7171 run : npm ci
7272
73- - if : ${{ github.repository == 'github/docs-internal' }}
74- name : Clone early access
75- run : npm run heroku-postbuild
73+ - name : Clone early access
74+ if : ${{ github.repository == 'github/docs-internal' }}
75+ run : script/early-access/clone-for-build.js
7676 env :
7777 DOCUBOT_REPO_PAT : ${{ secrets.DOCUBOT_REPO_PAT }}
7878 GIT_BRANCH : ${{ github.head_ref || github.ref }}
7979
80- - if : ${{ github.repository != 'github/docs-internal' }}
81- name : Run build script
80+ - name : Cache nextjs build
81+ uses : actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
82+ with :
83+ path : .next/cache
84+ key : ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
85+
86+ - name : Run build script
8287 run : npm run build
8388
8489 - name : Run tests
You can’t perform that action at this time.
0 commit comments