Skip to content

Releases: Sauloxd/review-apps

New syntax for multiple apps!

16 Mar 13:54
2564cf8
Compare
Choose a tag to compare

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)

Add new comment in PR feature!

29 Dec 21:00
ba329cb
Compare
Choose a tag to compare

Features

Now the action comments in the Pull Request with your app URLs, making the index.html unnecessary to access the apps!
You can now skip the index.html override with a skip-index-html flag, so you can coexist another github pages app with review apps!

Refactor to TS and some small improvements

28 Dec 21:23
2309871
Compare
Choose a tag to compare

Changes

  • Major rewrite to TS
  • Optional build-cmd in case you have a step just for building your static files
  • Fix nested branches not working properly. Now you can use this in branches such as feature/add-new-button

Bump @actions/core

19 Nov 23:08
51a8d36
Compare
Choose a tag to compare

Addressing #6 where this action would break due to new @actions/core add env policy.
As suggested, just bumping it fixed the problem :)

Bug fix

02 Sep 21:56
Compare
Choose a tag to compare

Bug fix

  • Fixed when closing a PR and trying to checkout to deleted branch

First release

02 Sep 20:57
Compare
Choose a tag to compare

v1.3.1 First release 🎉

This release enables you to:

  • Creates a review app per Pull Request;
  • Updates per new commit in branch, preserving the previous ones (but only accessible by full URL)
  • Removes review app when PR is closed (i.e. merged or rejected)
  • Debugging info with: ACTIONS_STEP_DEBUG=true