From 56543d239e09813de53cb092dd6ae8a006e7b378 Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Mon, 11 Oct 2021 18:32:43 +0300 Subject: [PATCH] chore: fix publish workflow and disable s3 demo --- .github/workflows/publish.yml | 51 ++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d1c9ccbf..5da7f70a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -45,30 +45,31 @@ jobs: name: bundles path: bundles - run: npm run e2e - deploy-demo: - needs: [bundle, unit-tests, e2e-tests] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - - name: Install dependencies - run: npm ci - - name: Download bundled artifacts - uses: actions/download-artifact@v2 - with: - name: bundles - path: bundles - - name: Build package - run: npm run build:demo - - name: Deploy to S3 bucket - run: npm run deploy:demo - - name: Invalidate - run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CF_DEMO_DISTRIBUTION_ID }} --paths "/*" + # disable this for now + # deploy-demo: + # needs: [bundle, unit-tests, e2e-tests] + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v1 + # - name: Configure AWS Credentials + # uses: aws-actions/configure-aws-credentials@v1 + # with: + # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # aws-region: us-east-1 + # - name: Install dependencies + # run: npm ci + # - name: Download bundled artifacts + # uses: actions/download-artifact@v2 + # with: + # name: bundles + # path: bundles + # - name: Build package + # run: npm run build:demo + # - name: Deploy to S3 bucket + # run: npm run deploy:demo + # - name: Invalidate + # run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CF_DEMO_DISTRIBUTION_ID }} --paths "/*" publish: needs: [bundle, unit-tests, e2e-tests] runs-on: ubuntu-latest @@ -91,7 +92,7 @@ jobs: npm-${{ hashFiles('package-lock.json') }} npm- - name: Before deploy - run: npm run declarations + run: npm ci && npm run declarations - name: Publish to NPM run: npm publish env: