feat: add commonJs option #176
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main, next] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- run: npm install | |
- run: npm run lint | |
- run: npm run build | |
- run: npm test | |
- run: npm run examples | |
- run: npx playwright install --with-deps | |
- run: npx playwright test | |
- run: npm run release | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: deploy examples | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: .github/capri | |
clean: true |