release 0.4.9-pre.0 #297
Workflow file for this run
This file contains hidden or 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: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| # We use this for a single test that runs Bun for a subprocess | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - run: npm ci | |
| - run: npm run build --if-present | |
| - run: npm run lint | |
| - name: Run tests | |
| run: npm test | |
| env: | |
| PREFAB_INTEGRATION_TEST_API_KEY: ${{ secrets.PREFAB_INTEGRATION_TEST_API_KEY }} | |
| PREFAB_TEST_API_KEY: ${{ secrets.PREFAB_TEST_API_KEY }} | |
| - name: Validate cjs version | |
| run: node dist/prefab.cjs | |
| - name: Validate esm version | |
| run: node dist/prefab.mjs |