From 31021d13615d514875880fd450de8bc05c43f1cf Mon Sep 17 00:00:00 2001 From: Scott Rees <6165315+reesscot@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:48:17 -0700 Subject: [PATCH] chore: remove testing publishing workflows (#4706) --- .../publish-next-release-unstable.yml | 73 ------------ .github/workflows/publish-next-release.yml | 104 ------------------ 2 files changed, 177 deletions(-) delete mode 100644 .github/workflows/publish-next-release-unstable.yml delete mode 100644 .github/workflows/publish-next-release.yml diff --git a/.github/workflows/publish-next-release-unstable.yml b/.github/workflows/publish-next-release-unstable.yml deleted file mode 100644 index f1582c8c275..00000000000 --- a/.github/workflows/publish-next-release-unstable.yml +++ /dev/null @@ -1,73 +0,0 @@ -# Description: This workflow runs unit + e2e tests, then publishes UI packages -# to `@next-release` NPM tag. -# -# Triggered by: merge to `next-release/main` - -name: Test and Publish / next-release-unstable - -on: - push: - branches: [next-release/main] - -permissions: - id-token: write # This is required for requesting the JWT - contents: read # This is required for actions/checkout - -jobs: - setup-cache: - uses: aws-amplify/amplify-ui/.github/workflows/reusable-setup-cache.yml@next-release/main - with: - commit: ${{ github.sha }} - repository: ${{ github.repository }} - - publish: - uses: ./.github/workflows/reusable-tagged-publish.yml - with: - dist-tag: next-release-unstable - secrets: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - build-test: - needs: publish - runs-on: ubuntu-latest - environment: ci - steps: - - name: Checkout repo - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 https://github.com/actions/checkout/commit/24cb9080177205b6e8c946b17badbe402adc938f - - name: Setup Node.js 20 - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 https://github.com/actions/setup-node/commit/64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c - with: - node-version: 20 - cache: 'yarn' - env: - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 - - name: Add Amplify CLI - run: yarn global add @aws-amplify/cli - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-region: us-east-2 - role-to-assume: ${{ secrets.AUTH_E2E_ROLE_ARN }} - # Amplify CLI does not support headless pull with temporary credentials - # when useProfile is false. - # See: https://github.com/aws-amplify/amplify-cli/issues/11009. - - name: Create temp AWS profile - run: | - aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID && \ - aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY && \ - aws configure set aws_session_token $AWS_SESSION_TOKEN && \ - aws configure set default.region $AWS_REGION - - name: Pull down AWS environments - run: yarn pull - working-directory: ./canary - - name: Delete AWS Profile - run: rm -rf ~/.aws - - name: Setup canary apps against @next-release-unstable - run: yarn setup:next-release-unstable - working-directory: ./canary - - name: Run yarn install on each sample app - run: yarn install - working-directory: ./canary - - name: Run yarn build on each sample app - run: yarn build - working-directory: ./canary diff --git a/.github/workflows/publish-next-release.yml b/.github/workflows/publish-next-release.yml deleted file mode 100644 index cca59de3da9..00000000000 --- a/.github/workflows/publish-next-release.yml +++ /dev/null @@ -1,104 +0,0 @@ -# Description: This workflow runs unit + e2e tests, then publishes UI packages -# to `@next-release` NPM tag. -# -# Triggered by: merge to `next-release/main` - -name: Test and Publish / next-release - -on: - push: - branches: [next-release/main] - -permissions: - id-token: write # This is required for requesting the JWT - contents: read # This is required for actions/checkout - -jobs: - setup-cache: - uses: aws-amplify/amplify-ui/.github/workflows/reusable-setup-cache.yml@next-release/main - with: - commit: ${{ github.sha }} - repository: ${{ github.repository }} - - unit: - uses: aws-amplify/amplify-ui/.github/workflows/reusable-unit.yml@next-release/main - needs: setup-cache - with: - commit: ${{ github.sha }} - repository: ${{ github.repository }} - - e2e: - uses: aws-amplify/amplify-ui/.github/workflows/reusable-e2e.yml@next-release/main - needs: unit - with: - commit: ${{ github.sha }} - repository: ${{ github.repository }} - secrets: - AUTH_E2E_ROLE_ARN: ${{ secrets.AUTH_E2E_ROLE_ARN }} - DATASTORE_E2E_ROLE_ARN: ${{ secrets.DATASTORE_E2E_ROLE_ARN }} - GEO_E2E_ROLE_ARN: ${{ secrets.GEO_E2E_ROLE_ARN }} - STORAGE_E2E_ROLE_ARN: ${{ secrets.STORAGE_E2E_ROLE_ARN }} - LIVENESS_E2E_ROLE_ARN: ${{ secrets.LIVENESS_E2E_ROLE_ARN }} - IN_APP_MESSAGING_E2E_ROLE_ARN: ${{ secrets.IN_APP_MESSAGING_E2E_ROLE_ARN }} - DOMAIN: ${{ secrets.DOMAIN }} - PHONE_NUMBER: ${{ secrets.PHONE_NUMBER }} - USERNAME: ${{ secrets.USERNAME }} - NEW_PASSWORD: ${{ secrets.NEW_PASSWORD }} - VALID_PASSWORD: ${{ secrets.VALID_PASSWORD }} - SITE_URL: ${{ secrets.SITE_URL }} - DOCSEARCH_DOCS_APP_ID: ${{ secrets.DOCSEARCH_DOCS_APP_ID }} - DOCSEARCH_DOCS_API_KEY: ${{ secrets.DOCSEARCH_DOCS_API_KEY }} - DOCSEARCH_DOCS_INDEX_NAME: ${{ secrets.DOCSEARCH_DOCS_INDEX_NAME }} - - publish: - needs: [e2e] - uses: ./.github/workflows/reusable-tagged-publish.yml - with: - dist-tag: next-release - secrets: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - build-test: - needs: publish - runs-on: ubuntu-latest - environment: ci - steps: - - name: Checkout repo - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 https://github.com/actions/checkout/commit/24cb9080177205b6e8c946b17badbe402adc938f - - name: Setup Node.js 20 - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 https://github.com/actions/setup-node/commit/64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c - with: - node-version: 20 - cache: 'yarn' - env: - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 - - name: Add Amplify CLI - run: yarn global add @aws-amplify/cli - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-region: us-east-2 - role-to-assume: ${{ secrets.AUTH_E2E_ROLE_ARN }} - # Amplify CLI does not support headless pull with temporary credentials - # when useProfile is false. - # See: https://github.com/aws-amplify/amplify-cli/issues/11009. - - name: Create temp AWS profile - run: | - aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID && \ - aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY && \ - aws configure set aws_session_token $AWS_SESSION_TOKEN && \ - aws configure set default.region $AWS_REGION - - name: Pull down AWS environments - run: yarn pull - working-directory: ./canary - - name: Delete AWS Profile - run: rm -rf ~/.aws - - name: Setup canary apps against @next-release - run: yarn setup:next-release - working-directory: ./canary - - name: Run yarn install on each sample app - run: yarn install - working-directory: ./canary - - name: Run yarn build on each sample app - run: yarn build - working-directory: ./canary