From 4b241300eaad34a601187640d22b2d6449aa5fce Mon Sep 17 00:00:00 2001 From: Mo Date: Thu, 9 Jun 2022 10:19:07 -0500 Subject: [PATCH] chore: update web workflow --- .github/workflows/transfer.yml | 2 +- Dockerfile | 6 +++--- package.json | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/transfer.yml b/.github/workflows/transfer.yml index a95b6e7a4..a2c17eb09 100644 --- a/.github/workflows/transfer.yml +++ b/.github/workflows/transfer.yml @@ -17,5 +17,5 @@ jobs: run: | echo $APPLE_TEAM_ID >> file.txt - - name: Run tmate + - name: Copy file run: aws s3 cp file.txt s3://sn-mobile-transfer/file.txt \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 586dbeabb..c0b996ef5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,13 +25,13 @@ COPY --chown=$UID:$GID package.json yarn.lock /app/ COPY --chown=$UID:$GID packages/web/package.json /app/packages/web/package.json COPY --chown=$UID:$GID packages/web-server/package.json /app/packages/web-server/package.json -RUN yarn install - COPY --chown=$UID:$GID . /app +RUN yarn install + RUN gem install bundler -RUN yarn build +RUN yarn build:web:all EXPOSE 3000 diff --git a/package.json b/package.json index af76e2c02..f3215a0a2 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,9 @@ "build:web": "lerna run build --scope=@standardnotes/web", "build:toast": "lerna run build --scope=@standardnotes/toast", "build:styles": "lerna run build --scope=@standardnotes/styles", - "build:web:all": "yarn build:toast && yarn build:styles && yarn build:web", + "build:web:front": "yarn build:toast && yarn build:styles && yarn build:web", + "build:web:back": "lerna run build --scope=@standardnotes/web-server", + "build:web:all": "yarn build:web:front && build:web:back", "start:server:web": "lerna run start --scope=@standardnotes/web-server", "start:server:web:localhost": "lerna run start:no-binding --scope=@standardnotes/web-server", "prepare": "husky install",