From 36e07b1ce9f0e61118bfdbec52ba013cec72280c Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Sun, 19 May 2024 15:22:11 -0700 Subject: [PATCH] fix: refine github actions --- .github/README.md | 3 +++ .github/workflows/docs-deploy.yml | 21 ++++++--------------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/README.md b/.github/README.md index 46f7e54e..bcd4b876 100644 --- a/.github/README.md +++ b/.github/README.md @@ -4,6 +4,9 @@ Automating tasks with GitHub Actions ## TODO +- https://github.com/marketplace/actions/turbo-changed +- https://github.com/Trampoline-CX/action-turbo-changed/blob/main/.github/workflows/example-pull_request.yml + ### Examples - https://github.com/kporten/template-react/tree/main/.github/workflows diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index d9f0a425..4421758c 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -34,24 +34,15 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup Pages 📄 + - name: ⚙️ Setup Node + uses: ./.github/actions/setup + - name: 💎 Setup Pages uses: actions/configure-pages@v5 with: enablement: true - - name: Setup PNPM ⚙️ - uses: pnpm/action-setup@v3 - - name: Setup Node 📐 - uses: actions/setup-node@v4 - with: - node-version: lts/* - cache: 'pnpm' - # - name: Filter Docs 📃 - # run: pnpm turbo prune --scope=docs - - name: Install dependencies 💎 - run: pnpm install - - name: Build 🏗️ - run: pnpm turbo build --filter=docs - - name: Upload Artifact ☁️ + - name: 🏗️ Build + run: turbo build --filter=docs + - name: ☁️ Upload Artifact uses: actions/upload-pages-artifact@v3 with: path: apps/docs/dist