Skip to content

feat: enable ESM support via dual-publishing #14

feat: enable ESM support via dual-publishing

feat: enable ESM support via dual-publishing #14

Workflow file for this run

name: Packaging Tests
on:
- pull_request
- push
env:
CI: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22.x
cache: npm
- run: npm ci
- run: npm run build
- run: npm pack
- name: Upload tarball
uses: actions/upload-artifact@v4
with:
name: package-tarball
path: firebase-functions-*.tgz
verify:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x
- 20.x
- 22.x
- 24.x
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Download tarball
uses: actions/download-artifact@v4
with:
name: package-tarball
- run: chmod +x ./scripts/test-packaging.sh && ./scripts/test-packaging.sh firebase-functions-*.tgz