Skip to content

feat: publish pipeline#5

Open
darshkpatel wants to merge 2 commits into
mainfrom
03-17-feat_publish_pipeline
Open

feat: publish pipeline#5
darshkpatel wants to merge 2 commits into
mainfrom
03-17-feat_publish_pipeline

Conversation

@darshkpatel
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Copy link
Copy Markdown
Member

@masad-frost masad-frost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk

@darshkpatel
Copy link
Copy Markdown
Collaborator Author

Only took 11 months for approval 🥳

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.

2 participants