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

ci: enable preview and repo dispatch #11768

Merged
merged 5 commits into from
Aug 21, 2024
Merged

Conversation

ematipico
Copy link
Member

@ematipico ematipico commented Aug 19, 2024

Changes

This PR creates two new workflows:

  • one to create a preview release when a PR is open, a PR is merged into main, and there's a workflow dispatch (manually triggered). It uses pkg.pr.new
  • one to dispatch an event when a PR is merged to main. This event is dispatched to withastro/starlight and withastro/adapters. These two repositories can subscribe to this event and enable continuous testing whenever we merge a PR.

The reason why I enabled the dispatch event only on push to main, is that it's not sustainable to trigger a test in other repositories at each commit.

Testing

This PR won't work until:

  • we enable pkg.pr.new as application for this repository (ideally for the entire org, I will sync with Matthew)
  • we create a PAT for dispatching the event

The usage of the PAT needs to be nested on main, so I will have to merge the PR.

Docs

N/A

Copy link

changeset-bot bot commented Aug 19, 2024

⚠️ No Changeset found

Latest commit: 62c1877

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the 🚨 action Modifies GitHub Actions label Aug 19, 2024
@ematipico ematipico force-pushed the chore/enable-dispatch-and-previews branch from f2fffa9 to 03bb900 Compare August 19, 2024 09:11
@ematipico ematipico changed the title ci: enables preview and repo dispatch ci: enable preview and repo dispatch Aug 19, 2024
@ematipico ematipico force-pushed the chore/enable-dispatch-and-previews branch from 5099da1 to eea0b3a Compare August 19, 2024 12:49
@ematipico ematipico force-pushed the chore/enable-dispatch-and-previews branch from eea0b3a to 1e5fdd4 Compare August 19, 2024 12:52
Copy link

pkg-pr-new bot commented Aug 20, 2024

commit: 62c1877

astro

pnpm add https://pkg.pr.new/withastro/astro@11768

@astrojs/prism

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/prism@11768

@astrojs/rss

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/rss@11768

create-astro

pnpm add https://pkg.pr.new/withastro/astro/create-astro@11768

@astrojs/db

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/db@11768

@astrojs/internal-helpers

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/internal-helpers@11768

@astrojs/studio

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/studio@11768

@astrojs/telemetry

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/telemetry@11768

@astrojs/underscore-redirects

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/underscore-redirects@11768

@astrojs/upgrade

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/upgrade@11768

@astrojs/alpinejs

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/alpinejs@11768

@astrojs/lit

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/lit@11768

@astrojs/markdoc

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/markdoc@11768

@astrojs/mdx

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/mdx@11768

@astrojs/node

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/node@11768

@astrojs/partytown

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/partytown@11768

@astrojs/preact

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/preact@11768

@astrojs/react

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/react@11768

@astrojs/sitemap

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/sitemap@11768

@astrojs/solid-js

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/solid-js@11768

@astrojs/svelte

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/svelte@11768

@astrojs/tailwind

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/tailwind@11768

@astrojs/vercel

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/vercel@11768

@astrojs/vue

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/vue@11768

@astrojs/web-vitals

pnpm add https://pkg.pr.new/withastro/astro/@astrojs/web-vitals@11768

Open in Stackblitz

@ematipico ematipico marked this pull request as ready for review August 20, 2024 07:37
@ematipico ematipico merged commit 04390c8 into main Aug 21, 2024
15 checks passed
@ematipico ematipico deleted the chore/enable-dispatch-and-previews branch August 21, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 action Modifies GitHub Actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant