Skip to content

Commit

Permalink
update release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineRelief committed Sep 14, 2023
1 parent ac7ea00 commit 87a6851
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- next-major
- beta
- alpha
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -24,6 +25,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check branch
run: |
VALID_BRANCHES=("main" "next" "next-major" "beta" "alpha")
BRANCH_NAME=$(basename ${{ github.ref }})
if [[ ! " ${VALID_BRANCHES[@]} " =~ " ${BRANCH_NAME} " ]]; then
echo "Invalid branch name: $BRANCH_NAME"
echo "Valid branch names are: ${VALID_BRANCHES[@]}"
exit 1
fi
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 87a6851

Please sign in to comment.