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: add pkg.pr.new #622

Merged
merged 2 commits into from
Sep 17, 2024
Merged

feat: add pkg.pr.new #622

merged 2 commits into from
Sep 17, 2024

Conversation

Aslemammad
Copy link
Contributor

This PR adds continuous preview releases to jscodeshift!

Before running the workflow, we'd have to install the app!

Copy link

vercel bot commented Aug 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jscodeshift ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2024 10:56am

@Daniel15
Copy link
Member

Daniel15 commented Sep 5, 2024

This sounds useful. Do you have a demo of how it works?

- name: Install dependencies
run: yarn --frozen-lockfile
- name: Preview
run: npx pkg-pr-new publish --compact
Copy link
Member

@Daniel15 Daniel15 Sep 5, 2024

Choose a reason for hiding this comment

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

We should lock this to a particular version or hash of pkg-pr-new so that we have to manually bump it to new versions. Running arbitrary new versions of this in a build script is a major supply chain attack risk.

Could you please add it as a dev dependency then run it with yarn, instead of using npx? That also avoids needing to have two package management systems installed (yarn and npm)

Copy link
Member

@Daniel15 Daniel15 left a comment

Choose a reason for hiding this comment

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

See inline comment

@Aslemammad
Copy link
Contributor Author

Amazing, I just moved to yarn now and installed pkg.pr.new! Would be happy to hear your thoughts!

@Daniel15
Copy link
Member

Sure, let's try it out!

@Daniel15 Daniel15 merged commit 2386494 into facebook:main Sep 17, 2024
3 checks passed
@Daniel15
Copy link
Member

Before running the workflow, we'd have to install the app!

I sent a request for access (to the admins of the Facebook org on Github, I guess) since I don't have permission to do this myself.

@Daniel15
Copy link
Member

Daniel15 commented Sep 27, 2024

@Aslemammad Do you know what this error means?

There is no workflow defined for nFAlv21cKx

I see that on this PR for example: #633

@Aslemammad
Copy link
Contributor Author

I see, have you installed the github application?

@Daniel15
Copy link
Member

Daniel15 commented Oct 31, 2024

Looks like this is working now. I had to get some issues fixed with the GitHub app. Test: #637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants