From 1c70d55b0be44f3049095de3d700e32ee0c122a2 Mon Sep 17 00:00:00 2001 From: Stephane Segning Lambou Date: Mon, 22 Jul 2024 14:58:29 +0100 Subject: [PATCH] fix(ui): pipeline nodejs version --- .../workflows/frontend-docs-generation.yml | 50 +++++++++++-------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/frontend-docs-generation.yml b/.github/workflows/frontend-docs-generation.yml index 2689fdd..09f5e2f 100644 --- a/.github/workflows/frontend-docs-generation.yml +++ b/.github/workflows/frontend-docs-generation.yml @@ -1,31 +1,37 @@ name: Generate Documentation for the frontend on: - push: - branches: - - '**' - pull_request: - branches: - - '**' + push: + branches: + - '**' + pull_request: + branches: + - '**' jobs: - generate-docs: - runs-on: ubuntu-latest - steps: - - name: Clone project - uses: actions/checkout@v3 + generate-docs: + runs-on: ubuntu-latest + steps: + - name: Clone project + uses: actions/checkout@v4 - - name: Install dependencies - run: yarn install + - name: Use Node.js 22.x + uses: actions/setup-node@v3 + with: + node-version: 22.x + cache: 'npm' - - name: Generate docs in markdown - run: yarn run typedoc + - name: Install dependencies + run: yarn install - - name: Convert md to pdf files - run: yarn run convert-md-to-pdf + - name: Generate docs in markdown + run: yarn run typedoc - - name: Upload PDF artifact - uses: actions/upload-artifact@v3 - with: - name: documentations - path: ./docs/**/*.pdf \ No newline at end of file + - name: Convert md to pdf files + run: yarn run convert-md-to-pdf + + - name: Upload PDF artifact + uses: actions/upload-artifact@v3 + with: + name: documentations + path: ./docs/**/*.pdf