Skip to content

Commit

Permalink
ci: add dispatchable workflow to update the bundle in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Jun 4, 2024
1 parent 859f685 commit 8ad2b87
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update Bundle
concurrency: Update Bundle
on: workflow_dispatch

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm install
- run: npx nx build web-component
- run: npx nx bundle web-component
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: packages/studio-web/src/assets/bundle.js
packages/studio-web/src/assets/fonts.b64.css
branch: "bundle-update"
commit-message: "chore: update bundle"

0 comments on commit 8ad2b87

Please sign in to comment.