Add seperate webpack configs for esm and cjs builds (#23) #122
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: Node.js CI | |
on: [push, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup kernel for build, increase watchers | |
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
- name: Use Node.js 18.15.0 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.15.0 | |
- name: Install dependencies | |
run: npm ci | |
- run: npm run test |