diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index da8588f50b..32de0ee6cc 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -53,14 +53,17 @@ jobs: with: node-version: '20.x' cache: 'yarn' + - name: Docusaurus Webpack cache + uses: actions/cache@v3 + with: + path: node_modules/.cache + key: ${{ runner.os }}-webpack-cache-${{ hashFiles('yarn.lock') }} - name: Install awscli uses: unfor19/install-aws-cli-action@v1 - name: Install jq run: sudo apt-get install -y jq - name: Install dependencies run: yarn install --frozen-lockfile - - name: Clean Docusaurus cache - run: rm -rf .docusaurus build - name: Build the Docusaurus site run: yarn build - name: Deploy the Docusaurus site diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 05af84a9c2..0bfdc08f8c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -27,10 +27,13 @@ jobs: with: node-version: '20.x' cache: 'yarn' + - name: Docusaurus Webpack cache + uses: actions/cache@v3 + with: + path: node_modules/.cache + key: ${{ runner.os }}-webpack-cache-${{ hashFiles('yarn.lock') }} - name: Install dependencies run: yarn install --frozen-lockfile - - name: Clean Docusaurus cache - run: rm -rf .docusaurus build - name: Build the Docusaurus site run: yarn build # --- Disallowed character checks for Pantheon --- diff --git a/docusaurus.config.js b/docusaurus.config.js index c6b525f2eb..a00de78c6c 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -38,7 +38,7 @@ module.exports = { ], future: { v4: true, - experimental_faster: false, + experimental_faster: true, }, staticDirectories: ['static'], presets: [