Skip to content

chore: bump http-proxy-middleware to 3.0.7 and 2.0.10 (#7050) #2912

chore: bump http-proxy-middleware to 3.0.7 and 2.0.10 (#7050)

chore: bump http-proxy-middleware to 3.0.7 and 2.0.10 (#7050) #2912

# Description: this workflow publishes UI packages to `latest` tag on NPM.
#
# Triggered by: whenever "Version Packages" is merged to `main`
# If successful, we will publish all updated UI packages to NPM.
name: Test and Publish / latest
on:
push:
branches: [main]
permissions:
id-token: write # This is required for requesting the JWT
contents: write # Used to push tags to GitHub
jobs:
setup:
runs-on: ubuntu-latest
outputs:
has-changesets: ${{ steps.has-changesets.outputs.has-changesets }}
steps:
- name: Checkout repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Check if repo has unconsumed changesets
id: has-changesets
uses: ./.github/actions/has-changesets
# Note: if there are no changesets, that means that either
# (1) "Version Packages" PR was just merged, or
# (2) no commits with changesets have been merged after packages were last published.
#
# In either way, we'll attempt to publish the packages. In case of (1), publish will succeed. In
# case of (2), `@changesets/action` will know that UI packages have already published and will
# skip publish.
build-test:
uses: ./.github/workflows/reusable-build-system-test.yml
needs: setup
if: ${{ needs.setup.outputs.has-changesets != 'true' }}
with:
dist-tag: next
secrets:
AUTH_E2E_ROLE_ARN: ${{ secrets.AUTH_E2E_ROLE_ARN }}
DOMAIN: ${{ secrets.DOMAIN }}
PHONE_NUMBER: ${{ secrets.PHONE_NUMBER }}
USERNAME: ${{ secrets.USERNAME }}
NEW_PASSWORD: ${{ secrets.NEW_PASSWORD }}
VALID_PASSWORD: ${{ secrets.VALID_PASSWORD }}
build-test-react-native:
uses: ./.github/workflows/reusable-build-system-test-react-native.yml
needs: setup
if: ${{ needs.setup.outputs.has-changesets != 'true' }}
with:
dist-tag: next
publish:
runs-on: ubuntu-latest
environment: deployment
needs:
- setup
- build-test
- build-test-react-native
if: ${{ needs.setup.outputs.has-changesets != 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Setup Node.js 24
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Install packages
uses: ./.github/actions/install-with-retries
with:
skip-cypress-binary: true # publishing doesn't need cypress
- name: Build packages
run: yarn build
- name: Publish to @latest
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
with:
publish: yarn publish:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Trigger build for prod liveness sample app pointing at latest tag
run: curl -X POST -d {} $ENDPOINT -H "Content-Type:application/json"
env:
ENDPOINT: ${{ secrets.LIVENESS_PROD_SAMPLE_APP_BUILD_TRIGGER }}
log-failure-metric:
# Send a failure data point to metric PublishLatestFailure in github-workflows@ us-east-2
runs-on: ubuntu-latest
environment: ci
needs: publish
if: ${{ failure() }}
steps:
- name: Log failure data point to metric PublishLatestFailure
uses: aws-amplify/amplify-ui/.github/actions/log-metric@main
with:
metric-name: PublishLatestFailure
value: 1
role-to-assume: ${{ secrets.METRIC_LOGGER_ROLE_ARN }}
aws-region: us-east-2
log-success-metric:
# Send a success data point to metric PublishLatestFailure in github-workflows@ us-east-2
runs-on: ubuntu-latest
environment: ci
needs: publish
if: ${{ success() }}
steps:
- name: Log success data point to metric PublishLatestFailure
uses: aws-amplify/amplify-ui/.github/actions/log-metric@main
with:
metric-name: PublishLatestFailure
value: 0
role-to-assume: ${{ secrets.METRIC_LOGGER_ROLE_ARN }}
aws-region: us-east-2