From 05bf0bd3a9974fb720078d6602ea276303921519 Mon Sep 17 00:00:00 2001 From: jpwallace22 Date: Sat, 9 Dec 2023 08:22:26 -0800 Subject: [PATCH] build: custom build workflow --- .github/workflows/deploy-docs.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 23548c1..7f3519e 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -12,12 +12,22 @@ permissions: jobs: build: + name: Build runs-on: ubuntu-latest steps: - - name: Checkout your repository using git - uses: actions/checkout@v3 - - name: Install, build, and upload your site - uses: withastro/action@v1 + - uses: actions/checkout@v3 + - run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV + + - name: 'use node ${{ env.NODE_VERSION }}' + uses: actions/setup-node@v3 + with: + node-version: '${{ env.NODE_VERSION }}' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build docs + run: yarn docs build deploy: needs: build