Releases: Sauloxd/review-apps
Releases · Sauloxd/review-apps
New syntax for multiple apps!
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!
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
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
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
Bug fix
- Fixed when closing a PR and trying to checkout to deleted branch
First release
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