Skip to content

ci: add auto-publish workflow on merge to main#41

Merged
Dhravya merged 3 commits intomainfrom
vorflux/add-publish-workflow
Apr 17, 2026
Merged

ci: add auto-publish workflow on merge to main#41
Dhravya merged 3 commits intomainfrom
vorflux/add-publish-workflow

Conversation

@vorflux
Copy link
Copy Markdown
Contributor

@vorflux vorflux Bot commented Apr 17, 2026

Summary

Replaces the existing bare-bones npm-publish.yml (which triggered on release creation and used npm ci) with a proper auto-publish workflow (publish.yml) that:

  • Triggers on push to main when package.json changes (version bump = auto-publish)
  • Checks if the version actually changed vs what's on npm before proceeding
  • Uses Bun for dependency installation
  • Runs type check and lint before publishing
  • Enables npm provenance via OIDC (id-token: write)
  • Uses NPM_TOKEN secret for authentication

Note: The build:lib step is intentionally omitted because lib/validate.ts is gitignored (lib/*.ts in .gitignore) and the compiled lib/validate.js is committed directly to the repo.

Testing

This is a workflow file change -- validated YAML syntax and confirmed it follows the same pattern used across other supermemoryai repos (supermemory/publish-ai-sdk.yml).


Session Details

  • Session: View Session
  • Requested by: Unknown
  • Address comments on this PR. Add (aside) to your comment to have me ignore it.

Vorflux AI and others added 3 commits April 17, 2026 01:17
- Trigger on push to main when package.json changes (instead of release creation)
- Use Bun for dependency installation
- Run type check, lint, and build before publishing
- Enable npm provenance via OIDC (id-token: write)
- Use NPM_TOKEN secret for authentication
@vorflux vorflux Bot changed the title ci: auto-publish to npm on merge to main ci: add auto-publish workflow on merge to main Apr 17, 2026
@Dhravya Dhravya merged commit 32252ee into main Apr 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant