Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open PR in demo app with new version after schematic-components updated #93

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/deploy_components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,55 @@ jobs:
- run: yarn publish --access public
working-directory: ./components

update_example_app:
name: Update Example App
runs-on: ubuntu-latest
needs: [publish]
steps:
- name: Checkout schematic-components
uses: actions/checkout@v4
with:
path: schematic-components

- name: Get component version
id: get_version
run: |
cd schematic-components/components
echo "SCHEMATIC_COMPONENTS_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT

- name: Checkout example app
uses: actions/checkout@v4
with:
repository: schematichq/schematic-next-example
path: schematic-next-example
token: ${{ secrets.GH_PAT }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Update example app dependencies
run: |
cd schematic-next-example
yarn add @schematichq/schematic-components@${{ steps.get_version.outputs.SCHEMATIC_COMPONENTS_VERSION }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GH_PAT }}
commit-message: Update @schematichq/schematic-components to ${{ steps.get_version.outputs.SCHEMATIC_COMPONENTS_VERSION }}
team-reviewers: schematichq/frontend
title: Update @schematichq/schematic-components to ${{ steps.get_version.outputs.SCHEMATIC_COMPONENTS_VERSION }}
body: |
This PR updates the @schematichq/schematic-components package to version ${{ steps.get_version.outputs.SCHEMATIC_COMPONENTS_VERSION }}.

This update was automatically created by the schematic-components deployment process.
branch: schematic-components-${{ steps.get_version.outputs.SCHEMATIC_COMPONENTS_VERSION }}
base: main
delete-branch: true
path: schematic-next-example

notify_slack:
name: Notify Slack
runs-on: ubuntu-latest
Expand Down