Skip to content

Repository files navigation

OpenMotion Workspace

This repository contains:

  • the demo Next.js app in the workspace root
  • the publishable npm package in packages/openmotion

Development

npm install
npm run dev

Package commands

Build just the package:

npm run build --workspace openmotion

Pack the package tarball:

npm run pack:package

Publish the public npm package:

npm publish --workspace openmotion --access public

For local terminal publishing, keep provenance off:

set NPM_CONFIG_PROVENANCE=false && npm publish --workspace openmotion --access public

The root package is intentionally private, so publishing from the repository root with plain npm publish will fail with EPRIVATE.

Trusted publishing

The workflow in .github/workflows/publish-openmotion.yml is set up for GitHub Actions + npm trusted publishing + provenance.

After the first manual publish, configure the trust relationship:

npm trust github openmotion --repo YOUR_GITHUB_USER/YOUR_REPO --file .github/workflows/publish-openmotion.yml --allow-publish

Then release from GitHub instead of using long-lived npm tokens.

Note: npm’s trusted publishing docs say automatic provenance generation works when publishing from supported CI/CD providers. A local terminal publish does not have a provider, so forcing provenance locally causes the provider: null error.

Official npm docs:

About

React animation library package (openmotion) with a Next.js demo workspace. Built with Motion One, React 19, Next.js 16, Tailwind CSS, and Zod.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages