Skip to content

fix: Output the build as CommonJS #59

fix: Output the build as CommonJS

fix: Output the build as CommonJS #59

Workflow file for this run

name: Node Test for PRs
on:
pull_request:
branches:
- development
- staging
- 'release/*'
- main
jobs:
test:
name: Install dependencies and test
runs-on: ubuntu-latest
strategy:
matrix:
node: ['20']
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- run: rm -rf package-lock.json # Remove the package-lock so that all versions of node can be tested
- run: npm i --legacy-peer-deps
- run: npm run test
- name: Build
run: npm run build