0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Setup CI for next branch (#12242)

This commit is contained in:
Bjorn Lu 2024-10-16 21:14:51 +08:00 committed by GitHub
parent 2b6daa5840
commit 7bcae4e3ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@ on:
push:
branches:
- main
- next
merge_group:
pull_request:
paths-ignore:
@ -208,6 +209,11 @@ jobs:
with:
repository: withastro/docs
path: smoke/docs
# For a commit event on the `next` branch (`ref_name`), use the `5.0.0-beta` branch.
# For a pull_request event merging into the `next` branch (`base_ref`), use the `5.0.0-beta` branch.
# NOTE: For a pull_request event, the `ref_name` is something like `<pr-number>/merge` than the branch name.
# NOTE: Perhaps docs repo should use a consistent `next` branch in the future.
ref: ${{ (github.ref_name == 'next' || github.base_ref == 'next') && '5.0.0-beta' || 'main' }}
- name: Install dependencies
run: pnpm install --no-frozen-lockfile