From 6182be967d8f9bf8687db8ef2a2bdf9bf3626824 Mon Sep 17 00:00:00 2001 From: Ethan Rose Date: Tue, 6 Feb 2024 14:50:52 -0800 Subject: [PATCH] Try to fix pnpm install --- .github/workflows/static.yml | 149 ++++++++++++++++++++--------------- 1 file changed, 87 insertions(+), 62 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 41d0f57da..e742fb963 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -28,75 +28,100 @@ concurrency: env: node_version: 20 - work_dir: ./github/scripts + pnpm_version: 8 + work_dir: .github/scripts # TODO cache pnpm dev deps between jobs jobs: spelling: runs-on: ubuntu-latest + steps: - - name: Checkout project - uses: actions/checkout@v4 - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: ${{ env.node_version }} - - name: Install node dependencies - run: | - pnpm install --dev - - name: Run Spell Check - working-directory: ${{ env.work_dir }} - run: | - spelling.sh - markdownlint: - runs-on: ubuntu-latest - steps: - - name: Checkout project - uses: actions/checkout@v4 - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: ${{ env.node_version }} - - name: Install node dependencies - run: | - pnpm install --dev - - name: Run markdownlint - working-directory: ${{ env.work_dir }} - run: | - markdownlint.sh - frontmatter: - runs-on: ubuntu-latest - steps: - - name: Checkout project - uses: actions/checkout@v4 - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: ${{ env.node_version }} - - name: Install node dependencies - run: | - pnpm install --dev - - name: Run markdown frontmatter check - working-directory: ${{ env.work_dir }} - run: | - frontmatter.sh - sidebar: - runs-on: ubuntu-latest - steps: - - name: Checkout project - uses: actions/checkout@v4 - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: ${{ env.node_version }} - - name: Install node dependencies - run: | - pnpm install --dev - - name: Run docs sidebar check - working-directory: ${{ env.work_dir }} - run: | - sidebar.sh + - name: Checkout project + uses: actions/checkout@v4 + - name: Use pnpm ${{ env.pnpm_version }} + uses: pnpm/action-setup@v2 + with: + version: ${{ env.pnpm_version }} + - name: Use Node.js ${{ env.node_version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.node_version }} + cache: 'pnpm' + - name: Install pnpm dependencies + run: pnpm install --dev + - name: Run Spell Check + working-directory: ${{ env.work_dir }} + run: | + spelling.sh + + + + + # steps: + # - name: Checkout project + # uses: actions/checkout@v4 + # - name: Setup node + # uses: actions/setup-node@v4 + # with: + # node-version: ${{ env.node_version }} + # - name: Install node dependencies + # run: | + # pnpm install --dev + # - name: Run Spell Check + # working-directory: ${{ env.work_dir }} + # run: | + # spelling.sh + + # markdownlint: + # runs-on: ubuntu-latest + # steps: + # - name: Checkout project + # uses: actions/checkout@v4 + # - name: Setup node + # uses: actions/setup-node@v4 + # with: + # node-version: ${{ env.node_version }} + # - name: Install node dependencies + # run: | + # pnpm install --dev + # - name: Run markdownlint + # working-directory: ${{ env.work_dir }} + # run: | + # markdownlint.sh + # frontmatter: + # runs-on: ubuntu-latest + # steps: + # - name: Checkout project + # uses: actions/checkout@v4 + # - name: Setup node + # uses: actions/setup-node@v4 + # with: + # node-version: ${{ env.node_version }} + # - name: Install node dependencies + # run: | + # pnpm install --dev + # - name: Run markdown frontmatter check + # working-directory: ${{ env.work_dir }} + # run: | + # frontmatter.sh + # sidebar: + # runs-on: ubuntu-latest + # steps: + # - name: Checkout project + # uses: actions/checkout@v4 + # - name: Setup node + # uses: actions/setup-node@v4 + # with: + # node-version: ${{ env.node_version }} + # - name: Install node dependencies + # run: | + # pnpm install --dev + # - name: Run docs sidebar check + # working-directory: ${{ env.work_dir }} + # run: | + # sidebar.sh file-names: runs-on: ubuntu-latest steps: