Skip to content

package.json and webpack configs should point to index as the main, s… #326

package.json and webpack configs should point to index as the main, s…

package.json and webpack configs should point to index as the main, s… #326

Workflow file for this run

name: Run Jest Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Apache Pulsar
uses: reugn/github-action-pulsar@v1
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '19.9.0' # Use your desired Node.js version
- name: Install dependencies
run: npm ci
- name: Run Jest tests
run: npm test
- name: Upload npm debug log on failure
if: failure()
uses: actions/upload-artifact@v3
with:
name: npm-debug-log
path: /home/runner/.npm/_logs/*-debug.log
- name: Generate TypeDocs
run: npm run docs
- name: Deploy TypeDocs
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GH_PAT }}
publish_dir: ./docs