Skip to content

Commit

Permalink
ci(release-please, chromatic): add support for hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benelan committed May 10, 2024
1 parent 1ad530e commit 2d64cd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "Chromatic - Main"
name: Chromatic
on:
push:
branches: [main]
branches: [main, hotfix, rc]
pull_request:
branches: [main]
branches: [main, hotfix, rc]
types: [labeled, synchronize]
jobs:
run:
Expand All @@ -25,7 +25,7 @@ jobs:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
zip: true
exitOnceUploaded: true
autoAcceptChanges: main
autoAcceptChanges: ${{ github.head_ref || github.ref_name }}
workingDir: packages/calcite-components
env:
STORYBOOK_SCREENSHOT_TEST_BUILD: true
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy Latest
on:
workflow_dispatch:
push:
branches: [main]
branches: [main, hotfix]
permissions:
contents: write
pull-requests: write
Expand All @@ -15,7 +15,7 @@ jobs:
with:
command: manifest
token: ${{ secrets.ADMIN_TOKEN }}
default-branch: main
default-branch: ${{ github.ref_name }}
extra-files: |
packages/calcite-components/readme.md
- name: Checkout Repository
Expand All @@ -24,7 +24,6 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.ADMIN_TOKEN }}
ref: main
- name: Setup Node
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-node@v4
Expand Down

0 comments on commit 2d64cd1

Please sign in to comment.