Skip to content

Commit

Permalink
fix(ci): yarn cache in wf
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzodagostinoradicalbit committed Jun 19, 2024
1 parent 9c8ca12 commit 7c7ab2f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docs-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test deployment
name: Docusaurus Workflow

on:
push:
Expand All @@ -17,7 +17,7 @@ on:
- ".github/workflows/docs-**"

jobs:
build:
build-doc:
name: Build Docusaurus
runs-on: ubuntu-22.04
defaults:
Expand All @@ -31,6 +31,7 @@ jobs:
with:
node-version: 18
cache: yarn
cache-dependency-path: docs/yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand All @@ -43,9 +44,9 @@ jobs:
with:
path: build

deploy:
deploy-doc:
name: Deploy to GitHub Pages
needs: [build]
needs: [build-doc]
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-22.04
defaults:
Expand Down

0 comments on commit 7c7ab2f

Please sign in to comment.