Skip to content

chore: Update React development guidelines (#1016) #117

chore: Update React development guidelines (#1016)

chore: Update React development guidelines (#1016) #117

name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
actions: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
target-branch: main
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
- name: Trigger deployment workflows
if: ${{ steps.release.outputs.release_created }}
uses: actions/github-script@v7
with:
script: |
const repo = context.repo.repo;
const owner = context.repo.owner;
async function triggerWorkflow(workflow_id) {
console.log(`Triggering workflow: ${workflow_id}`);
await github.rest.actions.createWorkflowDispatch({
owner: owner,
repo: repo,
workflow_id: workflow_id,
ref: 'main'
});
console.log(`Successfully triggered ${workflow_id}`);
}
await triggerWorkflow('deploy-storybook.yml');
await triggerWorkflow('publish.yml');