Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh: full-stack preview app enhancements #317

Merged

Conversation

tamssokari
Copy link
Contributor

@tamssokari tamssokari commented Aug 28, 2024

This PR does the following:

  • refactors a variable name in the deploy-preview workflow
  • updates sst to the latest stable release
  • modifies deploy-preview workflow to use latest stable release
  • remove redundant default_app directory

it is created to fix the issue @ayinloya flagged re: using this in CI.

so far, from the base branch, it is not clear what the issue is.
my current assumption is that the issue is adding the full-stack preview URL in a github comment. @ayinloya is that the case?

ayinloya
ayinloya previously approved these changes Aug 28, 2024
Copy link
Collaborator

@ayinloya ayinloya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

import { Resource } from 'sst';
import products from '~/data/products.json';

declare global {
interface Window {
SmileIdentity: Function;
SmileIdentity: function;
Copy link
Collaborator

@ayinloya ayinloya Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SmileIdentity: function;
SmileIdentity: Function;

@ayinloya ayinloya dismissed their stale review August 28, 2024 21:58

found a type error

@ayinloya ayinloya merged commit 95124d6 into smileidentity:preview-app Sep 5, 2024
8 of 11 checks passed
ayinloya added a commit that referenced this pull request Oct 22, 2024
* add previews

* Add preview app

* link files

* Fix lint

* Downgrade sst due to this issue https://github.com/sst/ion/issues/774

* Update readme

* Add destroy workflow when pr is closed

* Fix destroy deployed preview app workflow name

* Add script to retrieve the app url

* Set the right branch name for deployment
Share preview app url as comment on PR

* Deploy preview regardless of outcome of other steps

* Sanitize branch name

* Fix sst url after deploy

* fix share preview url

* use $GITHUB_HEAD_REF to get branch name when sharing preivew

* Support deployment when pr is reopened

* use sanitized branch name for preview url sharing

* Remove pr reopened from workflow

* resolve package-lock

* enh: full-stack preview app enhancements (#317)

* refactor: change `SS_STAGE` to `SST_STAGE`

* deps: use latest stable release of sst

sst v3 is now a stable release. this removes the need for the go binary
install step. npm wins, yet again

* fix: fix lint, prettier issues

* refactor: remove redundant `default_app` directory

---------

Co-authored-by: Barnabas A Nsoh <[email protected]>

* Fix lint

* add npm to run deploy preview

* add sst script

---------

Co-authored-by: tams sokari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants