Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: publish pipeline #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

darshkpatel
Copy link
Collaborator

@darshkpatel darshkpatel commented Mar 18, 2025

Add automated npm package publishing workflow

TL;DR

Add GitHub Actions workflow to automate package publishing and release creation when a new version tag is pushed.

Tested using --dry-run flag

Screenshot 2025-03-18 at 2 01 07 PM

What changed?

  • Added .github/workflows/publish.yml to handle automated package publishing
  • Added release scripts to package.json for versioning (release:patch, release:minor, release:major)
  • Updated README with detailed release instructions

How to test?

  1. Create a new version using one of the release commands:
    pnpm release:patch
  2. Push the tag:
    git push --follow-tags
  3. Verify the GitHub Actions workflow runs successfully
  4. Confirm the package is published to npm and a GitHub Release is created

Why make this change?

Streamlines the release process by automating the tedious steps of publishing to npm and creating GitHub releases. This ensures consistent releases and reduces manual errors during the publishing process.

This was referenced Mar 18, 2025
Copy link
Collaborator Author

darshkpatel commented Mar 18, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@darshkpatel darshkpatel mentioned this pull request Mar 18, 2025
@darshkpatel darshkpatel force-pushed the 03-17-feat_publish_pipeline branch from 79df03e to 1f4e567 Compare March 18, 2025 02:31
@darshkpatel darshkpatel force-pushed the 03-17-chore_setup_ci branch 2 times, most recently from e87e20d to d2156a8 Compare March 18, 2025 04:16
@darshkpatel darshkpatel force-pushed the 03-17-feat_publish_pipeline branch from 1f4e567 to 77af051 Compare March 18, 2025 04:16
@darshkpatel darshkpatel force-pushed the 03-17-chore_setup_ci branch from d2156a8 to 4f96ede Compare March 18, 2025 04:41
@darshkpatel darshkpatel force-pushed the 03-17-feat_publish_pipeline branch 2 times, most recently from 024d797 to 706bd93 Compare March 18, 2025 04:49
@darshkpatel darshkpatel force-pushed the 03-17-chore_setup_ci branch from 4f96ede to 3a55d01 Compare March 18, 2025 04:49
@darshkpatel darshkpatel force-pushed the 03-17-feat_publish_pipeline branch 2 times, most recently from 1f9ebd8 to bd207e3 Compare March 18, 2025 20:23
@darshkpatel darshkpatel force-pushed the 03-17-chore_setup_ci branch from 34a4670 to fcaca86 Compare March 18, 2025 20:31
@darshkpatel darshkpatel force-pushed the 03-17-feat_publish_pipeline branch from bd207e3 to 9f7a049 Compare March 18, 2025 20:32
@darshkpatel darshkpatel force-pushed the 03-17-chore_setup_ci branch from fcaca86 to 7f785e6 Compare March 18, 2025 20:35
@darshkpatel darshkpatel changed the base branch from 03-17-chore_setup_ci to graphite-base/5 March 18, 2025 20:35
@darshkpatel darshkpatel force-pushed the 03-17-feat_publish_pipeline branch from 9f7a049 to dd46f2f Compare March 18, 2025 20:36
@graphite-app graphite-app bot changed the base branch from graphite-base/5 to main March 18, 2025 20:36
@darshkpatel darshkpatel force-pushed the 03-17-feat_publish_pipeline branch from dd46f2f to 2a202f5 Compare March 18, 2025 20:36
@darshkpatel darshkpatel requested a review from masad-frost March 18, 2025 21:02
@darshkpatel darshkpatel marked this pull request as ready for review March 18, 2025 21:03
@darshkpatel darshkpatel force-pushed the 03-17-feat_publish_pipeline branch from 2a202f5 to e45ddee Compare March 18, 2025 21:08
@darshkpatel
Copy link
Collaborator Author

Generated and configured a scoped token

Screenshot 2025-03-18 at 2 19 40 PM Screenshot 2025-03-18 at 2 19 28 PM

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