From d6141070b467fd7d37dd833c6a62dfdb591e069c Mon Sep 17 00:00:00 2001 From: Simon Hofmann Date: Sun, 18 Feb 2024 23:54:58 +0100 Subject: [PATCH] Updated tagged release workflow --- .github/workflows/tagged_release.yaml | 28 ++++++++++++--------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tagged_release.yaml b/.github/workflows/tagged_release.yaml index 99e7133..a6debc3 100644 --- a/.github/workflows/tagged_release.yaml +++ b/.github/workflows/tagged_release.yaml @@ -8,8 +8,8 @@ jobs: test: strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - node: [18] + os: [ ubuntu-latest, windows-latest, macos-latest ] + node: [ 18 ] runs-on: ${{matrix.os}} steps: - name: Set up Git repository @@ -23,21 +23,15 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v3.0.0 - name: Install - run: npm ci + run: | + pnpm whoami + pnpm i - name: Compile run: npm run compile - - name: Init window e2e test subpackage - run: npm --prefix e2e/window-test ci - - name: Generate coverage report + - name: Run tests uses: GabrielBB/xvfb-action@v1 with: - run: | - npx playwright install --with-deps - npm test - - name: Run Electron e2e test subpackage - uses: GabrielBB/xvfb-action@v1 - with: - run: npm --prefix e2e/electron-test cit + run: pnpm run coverage deploy: needs: @@ -55,15 +49,17 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v3.0.0 - name: Install - run: npm ci + run: | + pnpm whoami + pnpm i - name: Run typedoc - run: npm run typedoc + run: pnpm --filter @nut-tree/nut-js run typedoc - name: Publish typedocs to GitHub Pages uses: peaceiris/actions-gh-pages@v3.7.3 with: deploy_key: ${{ secrets.API_DOC_DEPLOY_KEY }} external_repository: nut-tree/apidoc - publish_dir: ./docs + publish_dir: ./core/nut.js/docs - name: Publish tagged release to npm run: npm publish env: