From 8f015d39f659e6eb1cdc451bb821a1b6fb33e69a Mon Sep 17 00:00:00 2001 From: Brooke Date: Mon, 4 Mar 2024 18:38:35 +0000 Subject: [PATCH] ci: Attempt to fix doc deploy workflow --- .github/workflows/docs.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 39d8834..ef03c29 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,30 +9,27 @@ on: jobs: deploy: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] steps: - name: Checkout repository uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: "latest" + cache: "yarn" + cache-dependency-path: "yarn.lock" + + - name: Install packages + working-directory: docs + run: yarn install --immutable - - name: Install NPM dependencies - uses: bahmutov/npm-install@v1.4.5 - with: - working-directory: docs - - name: Build working-directory: docs - run: npm run build + run: yarn build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: docs/build - publish_branch: gh-pages \ No newline at end of file + publish_branch: gh-pages