Skip to content

MLJS-11 Add exports field to package.json for ESM/UMD interop #14

MLJS-11 Add exports field to package.json for ESM/UMD interop

MLJS-11 Add exports field to package.json for ESM/UMD interop #14

Workflow file for this run

name: Publish to npm
on:
push:
branches: [main]
paths: [package.json]
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 22
cache: yarn
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}