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:
parent
2b6daa5840
commit
7bcae4e3ee
1 changed files with 6 additions and 0 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue