Skip to content

Commit

Permalink
Updated tagged release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed Feb 18, 2024
1 parent 49f1464 commit d614107
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/tagged_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,21 +23,15 @@ jobs:
- name: Setup pnpm
uses: pnpm/[email protected]
- 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:
Expand All @@ -55,15 +49,17 @@ jobs:
- name: Setup pnpm
uses: pnpm/[email protected]
- 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/[email protected]
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:
Expand Down

0 comments on commit d614107

Please sign in to comment.