Skip to content

New syntax for multiple apps!

Latest
Compare
Choose a tag to compare
@Sauloxd Sauloxd released this 16 Mar 13:54
2564cf8

What's new?

Breaking changes

Now you don't need to declare each step for each app:

  • Before
     - name: Build and deploy storybook
        uses: sauloxd/[email protected]
        with:
          build-cmd: 'yarn workspace @saulo.dev/ui run build:sb'
          branch: 'review-apps'
          dist: 'packages/ui/storybook-static'
          slug: 'Design System'

      - name: Build and deploy blog
        uses: sauloxd/[email protected]
        with:
          build-cmd: 'yarn workspace @saulo.dev/blog run build'
          branch: 'review-apps'
          dist: 'packages/blog/public'
          slug: 'blog'
  • Now
      - name: Build and deploy storybook
        uses: sauloxd/[email protected]
        with:
          branch: "review-apps"
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          apps: |
            {
              "Design System": {
                "build": "yarn workspace @saulo.dev/ui run build:sb",
                "dist": "packages/ui/storybook-static"
              },
              "Blog": {
                "build": "yarn workspace @saulo.dev/blog run build",
                "dist": "packages/blog/public"
              }
            }

Minor

  • In every build of a branch, we cleanup all review-apps for that branch, improving the desync of "manifest.json" and errors in GH actions
  • Fixed error where Vercel was not building the action (so it worked in this repo, due to node_modules being present, but not in other repositories, where depencies were not present)