Skip to content

Commit 99cebea

Browse files
committed
try something else
1 parent b5fe982 commit 99cebea

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/preview.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,15 @@ jobs:
3636
# Multi line commands are folding for some reason, so we enforce new lines
3737
# For more predictable usage, use script files
3838
preview-cmd: |
39-
export NODE_OPTIONS=--tls-cipher-list="DEFAULT@SECLEVEL=1"
40-
make install;
41-
make deploy;
42-
make frontend;
39+
npm i -g yarn;
40+
export NODE_OPTIONS=--tls-cipher-list="DEFAULT@SECLEVEL=1";
41+
yarn install;
42+
yarn build:backend;
43+
yarn cdklocal bootstrap;
44+
yarn cdklocal deploy;
45+
yarn prepare:frontend-local;
46+
yarn build:frontend;
47+
yarn cdklocal bootstrap --app="node dist/aws-sdk-js-notes-app-frontend.js";
48+
yarn cdklocal deploy --app="node dist/aws-sdk-js-notes-app-frontend.js";
4349
distributionId=$(awslocal cloudfront list-distributions | jq -r '.DistributionList.Items[0].Id');
4450
echo LS_PREVIEW_URL=$AWS_ENDPOINT_URL/cloudfront/$distributionId/ >> $GITHUB_ENV;

0 commit comments

Comments
 (0)