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

Use GitHub Actions to publish registry #449

Merged
merged 1 commit into from
Jun 24, 2022
Merged

Conversation

jablko
Copy link
Contributor

@jablko jablko commented May 4, 2022

Can we use GitHub Actions to publish the types-registry on a weekly schedule, vs. checking each time we run the publisher, if it's been seven days yet?

const isTimeForNewVersion = isSevenDaysAfter(lastModified);

What I did was:

Here's an example of it working (except for actually publishing to npm): https://github.com/jablko/DefinitelyTyped-tools/actions/runs/2271150100

@jablko jablko force-pushed the patch-44 branch 3 times, most recently from 6bf5854 to 382b149 Compare May 6, 2022 17:06
Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

Looks good -- a lot of questions about the yml since I don't know the actions ecosystem very well.

.github/workflows/publish-registry.yml Show resolved Hide resolved
.github/workflows/publish-registry.yml Show resolved Hide resolved
.github/workflows/publish-registry.yml Show resolved Hide resolved
.github/workflows/publish-registry.yml Show resolved Hide resolved
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.

None yet

2 participants