Skip to content

Commit

Permalink
ci: explicitly configure main branch in env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Nov 1, 2023
1 parent b1ac291 commit e3b49a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
CI: true
MAIN_BRANCH: "main"

jobs:
install:
Expand Down Expand Up @@ -251,7 +252,7 @@ jobs:
uses: chromaui/action@v1
if: github.event.pull_request.draft == false
with:
autoAcceptChanges: main
autoAcceptChanges: ${{ env.MAIN_BRANCH }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: packages/storybook-css/dist/

Expand Down Expand Up @@ -279,7 +280,7 @@ jobs:
- name: Continuous Deployment to designsystem.utrecht.nl
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: main
branch: $${ env.MAIN_BRANCH }}
folder: packages/design-system-website/dist/
repository-name: nl-design-system/designsystem.utrecht.nl
token: ${{ secrets.DOCS_GH_TOKEN }}
Expand Down Expand Up @@ -356,7 +357,7 @@ jobs:
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: "NL Design System"
run: |
git push --set-upstream origin HEAD
git push --set-upstream "origin/${MAIN_BRANCH}" HEAD
pnpm run release
- name: "Continuous Deployment: publish to npm"
Expand Down

0 comments on commit e3b49a0

Please sign in to comment.